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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -