#21315 - 2002-05-08 03:39 PM
Re: Redirection to NUL
|
Duncan Bachen
Fresh Scripter
Registered: 2002-05-07
Posts: 5
|
quote: Try
code: --------------------------------------------------------------------------------
Shell "%comspec% /c /e:1024 reg add HKCU\Environment\REG_LET=$REG_LET > NUL"
--------------------------------------------------------------------------------
I did, and I got an error about syntax. I looked a little closer and realized that on the Windows 2000 box I am using, the syntax is different. /E from the good ol' DOS days used to let you set the size of the environment, however, with the W2K cmd.exe /E turns command extensions on/off. So its /E:On or /E:OFF
Once I removed th /E argument it worked.
Thanks
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 611 anonymous users online.
|
|
|