failed to set path using FBA general command

G

Guest

I tried to set the path variable using FBA general command. I add it as Extra Resources at .slx level

Arguments: set path=%path%;%SystemRoot%\system32\;%SystemRoot%;%SystemRoot%\system32\WBE
FilePath:%11%\cmd.ex
Phase: 850

the rest is defaul

when my image runs, the path is not set. Another application sets the path. How can I verify the command worked? Or how can I know if the application is overwritting my settings

thanks

sherry
 
K

KM

sherry,

Two problems in your code:
1) Your forgot /K or /C switch for CMD to run the argument as command.
2) Even with /K or /C it is not going to set Path persistently. It changes
the Path variable for CMD process only you launch (process enviroment
variable). You, however, need to change it for the entire system.

You may accomplish what you need to by changing the
[HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment],"Path"
(REG_EXPAND_SZ) registry value directly.
So, change you FBA Generic Command to launch reg.exe with the following
arguments:

ADD HKLM\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment /v Path /t REG_EXPAND_SZ /d
%%SystemRoot%%\system32\;%%SystemRoot%%;%%SystemRoot%%\system32\WBEM
(please note the double persentage signs inside the expand string)

or

IMPORT <your_file.reg>,
where your_file.reg is the reg file that you may export from
on dev machine post setting the Path value there.

The .reg file may also be imported with "regedit /s" command.

KM
I tried to set the path variable using FBA general command. I add it as Extra Resources at .slx level.

Arguments: set path=%path%;%SystemRoot%\system32\;%SystemRoot%;%SystemRoot%\system32\WBEM
FilePath:%11%\cmd.exe
Phase: 8500

the rest is default

when my image runs, the path is not set. Another application sets the
path. How can I verify the command worked? Or how can I know if the
application is overwritting my settings?
 
K

KM

sherry,

Please let us know what worked for you when you finish. This may be helpful for someone else in future.
Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top