Jump to content

Recommended Posts

Posted

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

Posted

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

 

:eek:

Posted
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!
  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...