PC Review Forums Newsgroups Windows XP Windows XP Embedded failed to set path using FBA general command

Reply

failed to set path using FBA general command

 
Thread Tools Rate Thread
Old 27-04-2004, 02:16 AM   #1
=?Utf-8?B?c2hlcnJ5?=
Guest
 
Posts: n/a
Default failed to set path using FBA general command


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
  Reply With Quote
Old 27-04-2004, 04:12 AM   #2
KM
Guest
 
Posts: n/a
Default Re: failed to set path using FBA general command

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



  Reply With Quote
Old 27-04-2004, 07:49 PM   #3
KM
Guest
 
Posts: n/a
Default Re: failed to set path using FBA general command

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.



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off