How do you do....it? Thread, Deleting files Via Script in Technical; I am having trouble trying to script delete of files from program files via a script so i can set ...
9th March 2010, 01:28 PM #1
Deleting files Via Script
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?
9th March 2010, 01:37 PM #2
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.
del C:\* /Y
9th March 2010, 01:42 PM #3
I tried that it just says invalid switch y?
9th March 2010, 01:46 PM #4
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!
9th March 2010, 02:52 PM #5
Here's a handy DOS resource:
MS-DOS help and commands
9th March 2010, 02:56 PM #6
i saw that on google but it was blocked!
9th March 2010, 04:02 PM #7
By noser in forum Wireless Networks
Last Post: 1st September 2009, 09:37 PM
By _Bat_ in forum Windows
Last Post: 25th February 2009, 09:50 AM
By dave.81 in forum Scripts
Last Post: 5th June 2008, 01:17 PM
By fox1977 in forum Windows
Last Post: 20th August 2007, 09:52 AM
By speckytecky in forum How do you do....it?
Last Post: 15th November 2006, 02:21 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)