I am trying to create a batch script that copies the contents of one folder into another. Ihave tried this:
mkdir "c:\Jamie"
cd c:\jamie_DateTimeStamp*
xcopy * "c:\Jamie"
for /D %%f in (c\jamie_*) do rmdir %%f /s /Q
I can get the delete to work but I cannot get the xcopy to work. things to know The Jamie_datetimestap folder can be any date and time so I don't have a constant and I need to use a wildcard. The goal of the script to copy the contents of a folder that has a datetime stamp into a folder that does not have one, then delete the folder with the datetime stamp I cannot simply rename the folder.