Hi, I have a file containing a single word surrounded by quotes. I want to get the word from the file minus the quotes and put it into a variable. This is my...
584
Michael Marquart
micm@...
Feb 1, 2001 7:33 pm
On Thu, 01 Feb 2001 18:53:38 -0000 Subject: [BATCH WORLD] parsing off qoutes johnh@... wrote: This works under Win98 @echo off set test="abc" for %%a in...
585
James Zagorski
zgreatwhite@...
Feb 1, 2001 8:25 pm
Forgive me, but I am unfamiliar with the /f switch of the for command.... for /? doesn't provide me any answers as well. Could someone inform me...
586
Jim Knopf
jknopf@...
Feb 1, 2001 10:27 pm
The Text Parser FOR Command in NT Using the /F switch parses text line by line and then executes the interation command for each line of text. Syntax: for /f...
587
Jim Knopf
jknopf@...
Feb 1, 2001 10:27 pm
Here's a Win9x/NT method: if %OS%/==Windows_NT/ set NTSwitch=/f "tokens*" for %NTSwitch% %%a in ("String enclosed in quotes") do echo %%a HTH __ _ _ ... ___|...
588
johnh@...
Feb 1, 2001 10:44 pm
Yes that sort of works I have to do it like this: for /f %%a in (tmp) do set test=%%a for /f %%a in (%test%) do set test=%%a I also found another method that...
589
John Koehler
Koehler@...
Feb 3, 2001 3:57 am
What is the name of the language you are all speaking and where can I get a good description of the commands and parameters of the language. Is it something...
590
trondoc@...
Feb 3, 2001 9:27 am
my attempts at redirecting the output of forindo to a file show that the file names are the truncated DOS versions. (like mylong~1.fil instead of...
591
trondoc@...
Feb 3, 2001 9:39 am
... I get a ... prompt ... John: Here are some good links about Batch programming and DOS in general. http://home7.inet.tele.dk/batfiles/ ...
592
Michael Marquart
micm@...
Feb 3, 2001 11:49 am
On Sat, 03 Feb 2001 09:27:11 -0000 Subject: [BATCH WORLD] forindo with Windoze Long File Names? trondoc@... wrote: @echo off lfnfor on for %%a in (*.*)...
593
Michael Marquart
micm@...
Feb 3, 2001 11:59 am
On Fri, 2 Feb 2001 22:56:21 -0500 Subject: [BATCH WORLD] Newbie question "John Koehler" <Koehler@...> wrote: Joe has given you a list of links to follow,...
594
katil no
katilno421@...
Feb 7, 2001 11:21 am
Hello, I want to write a batch file in which I have to rename some .txt file to .doc. I don't want to use the ren command. What I did was : for %% 1 in (*.txt)...
595
Michael Marquart
micm@...
Feb 7, 2001 12:07 pm
On Wed, 7 Feb 2001 03:21:48 -0800 (PST) Subject: [BATCH WORLD] a little batch file help : urgent katil no <katilno421@...> wrote: Why can't you use the...
596
Larry Piegza
piegz@...
Feb 7, 2001 3:06 pm
Hello everyone! I have two NT net user questions: 1) does anyone know how I can set up an account using net user so that the user must change their...
597
Troy McCLure
jbias@...
Feb 8, 2001 5:26 pm
hey gang Anyone know why an environment variable would be valid if commands are typed manually from a dos prompt, but not when referenced from a .bat file? I'm...
598
Asp, Peter
peter.asp@...
Feb 8, 2001 5:35 pm
I don't know what operating system your using (we use NT) but I use a freeware utility to do a similar function. Reg.exe can be found here... ...
599
James Zagorski
zgreatwhite@...
Feb 8, 2001 6:12 pm
Troy, You may remember me.... By the way, I don't have a good answer. What OS are you using? What happens if you echo your variable to the screen? ... ...
600
Jason Bias
jbias@...
Feb 8, 2001 6:17 pm
Yup! Sure do Win98, sorry forgot to include that. Jason ps - Troy McClure = B movie actor from The Simpsons. ... From: James Zagorski...
601
Michael Marquart
micm@...
Feb 8, 2001 7:04 pm
On Thu, 08 Feb 2001 17:26:48 -0000 Subject: [BATCH WORLD] environment variable output works manually, but not by .bat "Troy McCLure" <jbias@...>...
602
Jason Bias
jbias@...
Feb 8, 2001 7:16 pm
Mic echo %username% works fine. I can't put the line at the beginning of the file because it's writing a registry file to be imported and I'm putting the...
603
Michael Marquart
micm@...
Feb 8, 2001 7:38 pm
On Thu, 8 Feb 2001 14:10:30 -0500 Subject: RE: [BATCH WORLD] environment variable output works manually, but not by .bat Jason Bias <jbias@...>...
604
James Zagorski
zgreatwhite@...
Feb 8, 2001 8:45 pm
Do you just have a problem with the variable USERNAME , or are you unable to get it to work with ANY variable? Perhaps USERNAME is a reserved name??? Have...
605
katil no
katilno421@...
Feb 9, 2001 2:34 am
Well, I can use rename command to rename files but I would like to do it via. move. is it possible to put the same in a for loop and execute it to rename *.txt...
606
Michael Marquart
micm@...
Feb 9, 2001 12:19 pm
On Thu, 8 Feb 2001 18:34:32 -0800 (PST) Subject: [BATCH WORLD] renaming of files ... This sounds like school work kat... There is more than one way to achieve...
607
ziggard@...
Feb 13, 2001 11:57 pm
I'm trying to get my first Batch file to work using error handling. I'm working on an NT Server and the batch file now works fine to shut down the services...
608
Belinda Sloan
belinda@...
Feb 14, 2001 8:04 am
I am running several batch jobs from Norton Program Scheduler for NT. I have tried various commands inside the batch file to ensure the window closes after...
609
rmccann
rmccann@...
Feb 14, 2001 8:20 am
After the last entry of your batch file, put a period, that will close the window ... From: Belinda Sloan To: batchworld@yahoogroups.com Sent: Wednesday,...
610
arian.muijs@...
Feb 14, 2001 1:00 pm
Use the next syntax to end your bat-file cls @exit ^Z ( use <CTRL>Z. you won't see this code it in your batchfile but it is still there) met...
611
sohail18@...
Feb 14, 2001 1:32 pm
hi, I want to be able to check a registry entry through a batch file. Does anyone have any idea as to how to do it. Please respond ASAP as this is very...
612
Lamar Morris
LamarMorris@...
Feb 14, 2001 1:49 pm
Lamar Morris wrote: The following requires reg.exe out of the NT resource kit. The below snipit gives you version and sp level of NT4.0. REG QUERY...