Tagged with: Batch bat BVS
File name: Test.bat
Set THIS_BAT_PATH=%~DP0CD%this_bat_path%rd/s/q%sdv_llt_path% & MD%sdv_llt_path%
Path of current file: This_bat_path=%~dp0
CD%this_bat_path% into the path where the current file is located
Delete the file and create a new file: Rd MD
Call PLINK.EXE-SSH-PW Password [email protected] cd/home/test;rm TEST.TAR.GZ;TAR-ZCVF test.tar.gz test
:: Windows Decompression cd/d%rar_path%winrar.exe x-y%sdv_llt_path%\*.tar.gz%sdv_llt_path%
Call%ROOT%\PSCP.EXE-PW root [email protected]:/home/test.tar.gz%destpath%
Copy the files under the Linux server to the Windows machine: If the Pscp.exe file must be stored under the directory file where the Test.bat is located, the name is to copy the test.tar.gz from the 10.24.15.60Linux machine to the local Windows machine, the destination path is the de spath
xcopy%src_path%\test.tar.gz%dest_path%\/e/y/s
Window Batch operation: Copy files from Linux machine