#153165 - 2005-12-08 10:38 PM
It's Baroken. Or I'm retarded. Maybe both? SET Command
|
MasterRat
Fresh Scripter
Registered: 2005-12-08
Posts: 5
|
Ok.. I've been fighting with the SET command for about 90 minutes now...
It refuses to write the variable to the HKCU\Environment. It doesn't give me an error, it just won't put it in there.
Examples of syntax I've tried :
SET VAR="MISCTEXT" SET "VAR"="MISCTEXT" SET VAR = "MISCTEXT" SET VAR = $MISCTEXT
And many other options..
I'm missing something... but what?
|
|
Top
|
|
|
|
#153167 - 2005-12-08 10:48 PM
Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
|
MasterRat
Fresh Scripter
Registered: 2005-12-08
Posts: 5
|
Quote:
borrowing straight from the manual: SET "variable=string"
Pardon my french, but WTFD!?!?1 awjfiosdajfjhasdjlfhasdfjhsadjlkfha
I know I tried that!! I've got the 85 pages of command and macro reference RIGHT next to me... I've looked at the set commands a dozen times over, yet... NOW it works?!
I'm going to go for a long walk off a short pier now... Be back later.
|
|
Top
|
|
|
|
#153169 - 2005-12-08 11:06 PM
Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
|
MasterRat
Fresh Scripter
Registered: 2005-12-08
Posts: 5
|
Ok, is it possible to set a NULL value using the SET command? My testing suggests it is not, but then again... I posted this thread in the first place. heh
|
|
Top
|
|
|
|
#153171 - 2005-12-08 11:10 PM
Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
|
Allen
KiX Supporter
   
Registered: 2003-04-19
Posts: 4567
Loc: USA
|
Not sure what you tried but this should work
Code:
set 'variable='
|
|
Top
|
|
|
|
#153172 - 2005-12-08 11:42 PM
Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
|
MasterRat
Fresh Scripter
Registered: 2005-12-08
Posts: 5
|
Allen,
It does not work. Just doesn't do anything.
Which brings me to my next question, null issues aside..
Since the SET command sets the variable which is not readable by Kix (since it hasn't updated its session, if I'm right?), how can you reference the variable that was set later in the script?
Also, does anyone know where I can find a listing of the USE error codes? I have two drives returning 2250 for their error code.
|
|
Top
|
|
|
|
#153175 - 2005-12-09 12:02 AM
Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
|
MasterRat
Fresh Scripter
Registered: 2005-12-08
Posts: 5
|
I had the following in the script for testing :
USE U: /DELETE ? "U: @ERROR"
Which output U: 2250
I do, infact have a U: mapped, so I'm not sure how Gargoyle's answer could be.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 837 anonymous users online.
|
|
|