windows - How do I find current directory for my Batch file? -
windows - How do I find current directory for my Batch file? -
i working on batch file (let's phone call temp.bat). trying move batch file desktop, can't find batch file location / directory. asking if there extension or can utilize automatically identify directory, instead of entering every time. in other words, can still move file place in directory. example:
temp.bat on downloads file. utilize move command move file desktop. temp.bat on documents file. seek utilize same command move file desktop.
is there parameter extensions it?
this have now:
@echo off move /y [the directory of temp.bat] c:\users\69swag\desktop
all answers appreciated! :)
you don't need current directory move file.
move temp.bat c:\users\69swag\desktop
if still want current directory, utilize this:
echo %cd%
windows batch-file
Comments
Post a Comment