0
我想製作一個bat文件,將最新文件從文件夾上傳到公共html。這個怎麼做?我現在得到了這個工作。PSCP自動上傳最新文件
c:pscp -pw password c:\index.html [email protected]:public_html/index.html
我想製作一個bat文件,將最新文件從文件夾上傳到公共html。這個怎麼做?我現在得到了這個工作。PSCP自動上傳最新文件
c:pscp -pw password c:\index.html [email protected]:public_html/index.html
明白了:
set source="C:\dir"
FOR /F "delims=|" %%I IN ('DIR %source% /B /O:D') DO SET NewestFile=%%I
c:pscp -pw password %source%\%NewestFile% [email protected]:public_html/%NewestFile%
pause