1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Batch file help

Discussion in 'Windows XP' started by Fla_Panther, Sep 28, 2003.

Thread Status:
Not open for further replies.
  1. Fla_Panther

    Fla_Panther Thread Starter

    Sep 28, 2003
    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 ;)
  2. ShadedNine


    Sep 29, 2003
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 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/168188

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice