Jump to content

Setx Tool

- - - - -

  • Please log in to reply
No replies to this topic

#1
Syphilis

Syphilis

    Newbie

  • Members
  • Pip
  • 9 posts
What's Up Homeboys?

But seriously, I'm trying to take a word from a text file and put it into a variable so I can call it later on. After alot of googling I came across a resource kit 2000 tool called 'Setx' However there isn't a lot of syntax help. Can anyone see what's going wrong here?

SETX Var -f txt.txt -a 1,2
I've tried then echoing %Var% but it just echos ' %Var% '

Thanks Bye!

** OK, So if you do a simple script with this like
setx TEXT=CONTENTS
Then you have to restart cmd before echoing it works. But if you use my code in the first paragraph, You have to restart before it works, What the F prompt?

Edited by Syphilis, 11 April 2010 - 10:08 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users