Copying bat file (itself) to appdata -
Copying bat file (itself) to appdata -
i'm trying create bat re-create appdata folder. have tried this
copy %0 "%appdata%\windows.bat" > nul
but doesn't re-create itself. right way ?
@copy "%~f0" "%appdata%\windows.bat" > nul
do have spaces in file name? if yes require file name set in double quotes.
have used cd or pushd command? if yes you'll need utilize total path instead of relative (with %~f
).
have used shift command somewhere in script? can alter %0 value.
file batch-file exe
Comments
Post a Comment