Best procedure to run a command line script.
Please help me out here as I am completely lost. I want to run a command line script and not sure where on the hard drive to put the script.. I made a batch file and an example script and tried that but no workee.. Do I have to find the same directory that winscp.exe is located to place my bat file and example file..
I looked for the c:/Program Files/WinScp/winscp.exe but could not find anything like that on my hard drive.
I do have winscp installed and can use the interface easily and it works well.
Code inside example.txt
Code inside my batch file.
I looked for the c:/Program Files/WinScp/winscp.exe but could not find anything like that on my hard drive.
I do have winscp installed and can use the interface easily and it works well.
Code inside example.txt
winscp.com /ini=nul /command ^ "open sftp://user:password@example.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx""" ^ "get examplefile.txt d:\" ^ "exit"
Code inside my batch file.
winscp.com /ini=nul /script=example.txt