Want to use batch processing to delete the files in the c:\Documents and Settings\CCTV\My Documents\YYGH\DATA folder and subfolders, while keeping the subfolders, please help! Thank you
cd c:\Documents and Settings\CCTV\My Documents\YYGH\DATA
del *.* /s /q This is what I wrote, but I think there is a problem,
1. If there is no CCTV path, it will delete all files on the local machine
2. If this script is started on another partition outside the C drive, then it will delete all files in the script startup directory (don't know how to avoid this situation)
[ Last edited by jpowe on 2008-3-10 at 12:39 AM ]
cd c:\Documents and Settings\CCTV\My Documents\YYGH\DATA
del *.* /s /q This is what I wrote, but I think there is a problem,
1. If there is no CCTV path, it will delete all files on the local machine
2. If this script is started on another partition outside the C drive, then it will delete all files in the script startup directory (don't know how to avoid this situation)
[ Last edited by jpowe on 2008-3-10 at 12:39 AM ]

