lianne143
asked on
Batch file to delete a folder in windows 7 , when the PC restarts.
Hi
I want to delete a folder in windows 7 when this PC restarts.The folder is located in the following location .
C$\ProgramData\Microsoft\W indows\Sta rt Menu\Programs\Technology\T extile Technology
I will create a GPO and i will apply this batch file to a GPO (Computer configuration-policies- windows settings-Scripts-shutdown)
Please post me a syntax for a batch file;
Any help much appreciated, thanks guys.
I want to delete a folder in windows 7 when this PC restarts.The folder is located in the following location .
C$\ProgramData\Microsoft\W
I will create a GPO and i will apply this batch file to a GPO (Computer configuration-policies- windows settings-Scripts-shutdown)
Please post me a syntax for a batch file;
Any help much appreciated, thanks guys.
rmdir /s /q "C:\TestingThe BatchFile"
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks David it worked like a Charm , it deleted the Textile Technology folder.
Finally I want to add another line to create a folder called "Food Technology" under the following location and want to copy a shortcut within this Food Technology folder.
C$\ProgramData\Microsoft\W indows\Sta rt Menu\Programs
Finally I want to add another line to create a folder called "Food Technology" under the following location and want to copy a shortcut within this Food Technology folder.
C$\ProgramData\Microsoft\W
ASKER
Thanks for your help so far.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I've requested that this question be deleted for the following reason:
Not enough information to confirm an answer.
Not enough information to confirm an answer.
there is more than enough informatrion: accept qlemo's last comment ID: 40445796 and my comment (assisted) ID: 40438107
Insert the following line:
rd /s /q C:\ProgramData\Microsoft\W
This will remove the directory with the contents, in quiet mode, not asking you for confirmation.