member11 Posted January 25, 2005 Posted January 25, 2005 i'm thinking about writing a bat file to delete files and folders AFTER unattend setup and i'm not sure where "del" and "deltree" command locate in windows folder so that i can use these commands in my bat file. If you know, please let me know.2-If you know a GOOD website which shows how to write a bat file from a beginning to advance level, please post a link here.thank you very much
MCT Posted January 25, 2005 Posted January 25, 2005 huh? all u need 2 do isfor a file: DEL /Q "Path to file"for a folder: RD /S Q "path to folder"
member11 Posted January 25, 2005 Author Posted January 25, 2005 huh? all u need 2 do isfor a file: DEL /Q "Path to file"for a folder: RD /S Q "path to folder"i tried to use DEL thing but error message comes up. Del is not a recognized command............
Alanoll Posted January 25, 2005 Posted January 25, 2005 batch isn't hard.open up a command prompt, and type your commands you want to accomplish....Goodjob, now just write those EXACT commands in a CMD file, bravo you've made the file.If you don't know what a certain command does, type /? or go into the HELP documentation included inwindows or search online.BATCH is simply the computer typing in the commands that you normally would. It's in sequence and and EXACTLY the same as typing the command prompt (there are exceptions, but that's getting into conditionals and loops)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now