Batch file help

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Fla_Panther

Thread Starter
Joined
Sep 28, 2003
Messages
30
I want to right click on any given folder and create a text file listing all the files within it. So far I have been doing this with files on CDs and using this:

dir f: /b /s > e:\dir.doc (Where F: is my CD drive)

I figure I can put a copy of the batch in my right-click "Send To" menu... but how do I tell the batch file to use the directory of the folder I am right clicking on? Or would it be easier to do this in vbs (which I've never used before) or something else?

Oh, and btw, I'm running Win2k, if it makes any difference...

PPS - and if your REALLY want to tackle a tough one, how about telling me how to have it check to see if dir.doc already exsists, and if so, creating it instead as dir01.doc, dir02.doc, etc., so I don't have to keep going in there and changing them manually after each time I run the (*&^ thing!! lol ;)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top