PC Review
Forums
Newsgroups
Windows XP
Windows XP Embedded
failed to set path using FBA general command
Forums
Newsgroups
Windows XP
Windows XP Embedded
failed to set path using FBA general command
![]() |
failed to set path using FBA general command |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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? > > thanks, > > sherry |
|
|
|
#3 |
|
Guest
Posts: n/a
|
sherry,
Please let us know what worked for you when you finish. This may be helpful for someone else in future. Thanks, -- KM, BSquare Corporation > Thank you, KM. I'll try it now. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

