Batch File execution on remote windows server via batch file on another windows server -


i trying call batch file placed on remote windows server windows server. have freesshd installed on remote server. tried using putty/plink of no result.

syntax of command using is:

putty: start e:\putty.exe -ssh user12@serverip -pw "abcd12" call sample.bat

plink: start e:\plink.exe -ssh user12@serverip -pw "abcd12" cmd.exe -m e://sample.txt

i tried variants of above 2 commands "-m file.txt" etc. able execute batch file via login putty console not via calling batch file placed on windows server.

this how start remote programs in windows.

wmic /node:servername process call create "cmd.exe c:\\somefolder\\batch.bat" 

files executed way invisible on remote computer.

for help

wmic /? wmic process /? wmic process /? wmic process set /? wmic process call /? wmic process call create /? wmic process /node /? wmic process /user /? wmic process /password /? 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -