glennda Posted March 9, 2010 Report Posted March 9, 2010 I am having trouble trying to script delete of files from program files via a script so i can set it up as a gpo , but i am stuck as i can't work out how to get it to just agree to delete the files and not prompt each time it finds a file. i did look at VBS but it confuses me! does any one have a script they can send me? Thanks Toby
tmcd35 Posted March 9, 2010 Report Posted March 9, 2010 if you are using the del command in a bat file add '/Y' (not quotes) to the command string. That should auto-answer 'yes' for you. Example: del C:\* /Y
glennda Posted March 9, 2010 Author Report Posted March 9, 2010 I tried that it just says invalid switch y?
tmcd35 Posted March 9, 2010 Report Posted March 9, 2010 Ooops, it'd be a /Q then for 'quiet mode'. Really you'd have thought the MS-Dos programmers would have gone for common switches between commands! 1
Gerry Posted March 9, 2010 Report Posted March 9, 2010 Here's a handy DOS resource: MS-DOS help and commands
glennda Posted March 9, 2010 Author Report Posted March 9, 2010 i saw that on google but it was blocked!
browolf Posted March 9, 2010 Report Posted March 9, 2010 another reference site is SS64.com Command line reference
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