Go Back   Cyber Tech Help Support Forums > Operating Systems > Windows NT, 2000, 2003

Notices

Reply
 
Topic Tools
  #1  
Old September 29th, 2003, 03:59 AM
Fla_Panther Fla_Panther is offline
New Member
 
Join Date: Sep 2003
Age: 33
Posts: 21
Question Batch file help

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
Reply With Quote
  #2  
Old October 3rd, 2003, 10:02 AM
putasolutions putasolutions is offline
Senior Member
 
Join Date: Sep 2003
Location: North East,UK
Posts: 581
You're right it would be better in VBS, but do yourself a big favour and save yourself a bit of time, by downloading and running Karen Kenworthys' Directory Printer v3.4 (924kb freeware)
Reply With Quote
Reply

Bookmarks

Topic Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:48 PM.

[ RSS ]