A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Customizing Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Batch Files in Win XP



 
 
Thread Tools Display Modes
  #1  
Old May 18th 07, 03:47 PM posted to microsoft.public.windowsxp.customize
VexedFist
external usenet poster
 
Posts: 3
Default Batch Files in Win XP

I am trying to write a batch file for use in Windows XP.
Here is what I have now:

CD\
CD..
cd Temp Data Files
cd Raw Data
del lexall
del lexall.out
rename lexall.txt lexall.
9005LEX.EXE

I need to change the lexall.txt file name to include a user variable:

1234567_lexall.txt

The Number 1234567 needs to be input by the user every time.
Does anybody have any ideas?

Any and all suggstions will be welcome.
Ads
  #2  
Old May 18th 07, 06:41 PM posted to microsoft.public.windowsxp.customize
Poprivet
external usenet poster
 
Posts: 1,503
Default Batch Files in Win XP

VexedFist wrote:
I am trying to write a batch file for use in Windows XP.
Here is what I have now:

CD\
CD.. NOT NEEDED
cd Temp Data Files OK, just add quotes and the full path. e.g.

cd X:\"temp data files".
In fact, the two lines could be written as
cd X:\"temp data files\raw data"
Where, of course, X is the drive letter.

cd Raw Data CAN BE COMBINED AS ABOVE.
del lexall
del lexall.out
rename lexall.txt lexall.
9005LEX.EXE

I need to change the lexall.txt file name to include a user variable:

1234567_lexall.txt

The Number 1234567 needs to be input by the user every time.
Does anybody have any ideas?

Any and all suggstions will be welcome.


It's all pretty basic; there are many batch tutorials around the 'net;
search for them. Almost all you need will be in the beginning basics. IIRC
allenware.com was a good one and started with the very basics and went from
there.

I didn't finish the batch file for you because without understanding what
it does, you'll never make good use of it or even find a typo if you make
one.

HTH
Pop`


  #3  
Old May 19th 07, 03:25 AM posted to microsoft.public.windowsxp.customize
Stan Brown
external usenet poster
 
Posts: 2,904
Default Batch Files in Win XP

Fri, 18 May 2007 07:47:00 -0700 from VexedFist
:
Here is what I have now:

CD\
CD..


I don't know what you're trying to do, but the above can't *possibly*
accomplish it.

"CD \" transfers to the root directory of the current disk.

"CD .." transfers one level above the current directory.

But the root directory is the root -- there's nothing above it. Hence
"CD .." in that context is meaningless.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 11:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.