Search found 4 matches
- 09 Mar 2011 22:09
- Forum: DOS Batch Forum
- Topic: Batch file same attribute to a folder + all sub folders
- Replies: 1
- Views: 2563
Re: Batch file same attribute to a folder + all sub folders
I was given the answer below on another forum here: http://www.theeldergeek.com/forum/index.php?showtopic=44616 You can try using the /S and /D switches: EX: attrib +r "D:\My Documents\Main Folder\*.*" /S /D /S Processes matching files in the current folder and all subfolders. /D Processes...
- 09 Mar 2011 02:17
- Forum: DOS Batch Forum
- Topic: Batch file same attribute to a folder + all sub folders
- Replies: 1
- Views: 2563
Batch file same attribute to a folder + all sub folders
I need a batch file to assign the same attribute to a folder and all its sub folders. Can this be done using an argument or a "wildcard" instead of assigning the attribute to each sub folder individually? I use XXCopy in my batch files. Instead of having to do this: attrib +r "D:\My D...
- 13 Feb 2011 03:02
- Forum: DOS Batch Forum
- Topic: Batch file to prompt user for a choice of operations
- Replies: 2
- Views: 3193
Re: Batch file to prompt user for a choice of operations
Thanks for the suggestions. I have found a way to make the script do what I wanted. My script isn't very elegant I am sure there are better ways to write a script to achieve this. But although it may be primitive, it does what I wanted. New Copy.bat --------------------------------------------------...
- 12 Feb 2011 18:32
- Forum: DOS Batch Forum
- Topic: Batch file to prompt user for a choice of operations
- Replies: 2
- Views: 3193
Batch file to prompt user for a choice of operations
My OS is XP-PRO SP3 How can I have this batch file prompt the user to select one of the choices below? 1. Terminate program at this point. 2. Perform this operation. 3. Skip this operation and go to the next operation. Thank you. @ECHO OFF echo "Enter FolderName" set /p FolderName= xxcopy ...