I am trying to create a task using a batch file which i can then add to my windows task manager so that i can schedule it run every 7 days.
I need the file to delet anything which is contained within the scanned documents folder. The folder is located on a network and shared by other users.
The code that i have so far is
set "folder=\\IVNKING\Shared Files\Scanned Documents"
pushd "%folder%"
for /d %%i in ('*') do rmdir "%%i" /q
popd
Does anybody know if this will delete only the contents of the scanned documents folder or if it will delete anything in other folders in the path.
I need the file to delet anything which is contained within the scanned documents folder. The folder is located on a network and shared by other users.
The code that i have so far is
set "folder=\\IVNKING\Shared Files\Scanned Documents"
pushd "%folder%"
for /d %%i in ('*') do rmdir "%%i" /q
popd
Does anybody know if this will delete only the contents of the scanned documents folder or if it will delete anything in other folders in the path.
My Computer
- Computer type
- PC/Desktop
- OS
- windows 7 32 bit o/s