we have an FTP server with hundreds of users. Each user has sub folders, Each week I want to delete the content of the sub folders, but leave the content in the main root folder.
the script I have so far is like this, which works and deletes the content of the subfolders.
How can I change it to link to a text file with users, in line two, the user is jblogs, without having to run the script for each user.
cd /C %topLevel%
FOR /C %%a IN (*) DO (
forfiles /P "%topLevel%\%%a" /S /M *.* /C -7 /C "cmd /C del @PATH"
cd /C %topLevel%\%%a
for /f "delims=" %%i in ('dir /s /b /ad ^| sort /r') do rd "%%i">NUL