Page 1 of 1 1
Topic Options
#153165 - 2005-12-08 10:38 PM It's Baroken. Or I'm retarded. Maybe both? SET Command
MasterRat Offline
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
#153166 - 2005-12-08 10:42 PM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
borrowing straight from the manual:
SET "variable=string"
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#153167 - 2005-12-08 10:48 PM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
MasterRat Offline
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
#153168 - 2005-12-08 10:49 PM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
OK Jesus, have a nice walk.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#153169 - 2005-12-08 11:06 PM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
MasterRat Offline
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
#153170 - 2005-12-08 11:08 PM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11631
Loc: CA
NULL - No it's not. Blank yes, which in turn removes the SET var just as it would in DOS
Top
#153171 - 2005-12-08 11:10 PM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
Allen Administrator Offline
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 Offline
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
#153173 - 2005-12-08 11:49 PM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Code:
C:\WINDOWS>net helpmsg 2250

The network connection could not be found.


EXPLANATION

This network connection does not exist.

ACTION

To display a list of shared resources to which your computer
is connected, type:

NET USE

_________________________
Today is the tomorrow you worried about yesterday.

Top
#153174 - 2005-12-08 11:50 PM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
Did you check @serror? How about posting the code? I bet you have some functions outputing to the screen and the 2250 is something more along the lines of 2,2,5,0 errors.
Top
#153175 - 2005-12-09 12:02 AM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
MasterRat Offline
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
#153176 - 2005-12-09 05:00 AM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Did you read the KiXtart Manual? It contains a link to a list of Win32 error codes.
_________________________
There are two types of vessels, submarines and targets.

Top
#153177 - 2005-12-09 09:12 AM Re: It's Baroken. Or I'm retarded. Maybe both? SET Command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and replacing @ERROR with @SERROR proves the given error text correct.

what comes to your set issues...
I guess, you should let us know what you are up to.
as it seems that you are just trying to make things lot more complicated than they are.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.064 seconds in which 0.025 seconds were spent on a total of 11 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org