I made these codes to backup files :
When I test it under cmd of Windows 7 , it works great!!
When I try it under MS-DOS(VirtualBOX) it does not
It gives me these errors :
Version of MS-DOS used under VirtualBox is 6.22
any suggestion ?
Code:
set p=C:\Users\
for /f %%a in ('dir C:\Users\ /b') do (
if not "%%a"=="Public", (
set fileDest=C:\Backup-%%a_%date:~7,2%.%date:~4,2%.%date:~10,4%
If Not Exist "%fileDest%" mkdir "%fileDest%"
set "fullPath=%p%%%a%"
xcopy "%fullPath%" %fileDest% /e /h /y /k
rem call blah.bat
)
)
When I test it under cmd of Windows 7 , it works great!!
When I try it under MS-DOS(VirtualBOX) it does not
It gives me these errors :
Version of MS-DOS used under VirtualBox is 6.22
any suggestion ?
My Computer
- Computer type
- Laptop
- Computer Manufacturer/Model Number
- Toshiba
- OS
- Windows 7
- CPU
- i3
- Graphics Card(s)
- Nvidia
- Antivirus
- AVG
- Browser
- Chrome