I have this script for backing up my project Newtrodit if you're interested: ```cmd @echo off setloc

I have this script for backing up my project Newtrodit if you're interested:
@echo off
setlocal EnableDelayedExpansion

for /f "tokens=1* delims= " %%A in ("%date%%time%") do (
set "str=%%A"
set "str=!str:/=!"
set "str=!str::=!"
)
md "%dsk%\Newtrodit\%str%"
echo.Backing up...
pushd "%~dp0"
xcopy *.* "%dsk%\Newtrodit\%str%" /e
popd
@echo off
setlocal EnableDelayedExpansion

for /f "tokens=1* delims= " %%A in ("%date%%time%") do (
set "str=%%A"
set "str=!str:/=!"
set "str=!str::=!"
)
md "%dsk%\Newtrodit\%str%"
echo.Backing up...
pushd "%~dp0"
xcopy *.* "%dsk%\Newtrodit\%str%" /e
popd
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?