New
#1
Need help wih a .bat file commands
Im not sure if this is a grate place to ask this.. but... well Windows does speak DOS commands... well sorta
anyway, im trying to set up a batch file that would first transfer all the files and subfolders from "a" folder to "b" folder, and then would delete all the subfolders and files in "a" folder but it has to leave "a" folder undeleted. i wan to delete just all the files and subfolders inside. i searched forums for a few hours now, no luck.. all i came up with is this:
it does the job just.. it also deletes the "a" folder, witch is a bad thingCode:@echo off xcopy /Y C:\Users\User\Desktop\a\*.* C:\Users\User\Desktop\b /s /q /f del C:\Users\User\Desktop\a\*.* /s /q /f ECHO Y | RD /s /q C:\Users\User\Desktop\a exit
does anybody can help with this?