scripting - How to specify the current directory in Windows Shell? -



scripting - How to specify the current directory in Windows Shell? -

i have next bat file intended archive specified folder, protect password , re-create archive file local dropbox folder.

"c:\program files\7-zip\7z.exe" -mx9 archive.7z "g:\this test\directory\with subdirectories\" -psecret -mhe=on xcopy "g:\this test\directory\with subdirectories\archive.7z" "g:\my documents\my dropbox\" /c /d /s /e /k /y

i utilize 7-zip archiving.

is possible alter script in such way can set in folder take , same - archive current folder, protect password , re-create archive file local dropbox folder?

simply said, command "archive current directory , sub-directories"?

%cd% current directory. seek echo %cd% in dos prompt seek out.

shell scripting batch-file

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -