logandiana
Board Regular
- Joined
- Feb 21, 2017
- Messages
- 107
I am just learning some command line and need help with some syntax when switching to a .bat file.
A high level overview: I am using WinSCP to connect to an Amazon S3 bucket. Then I am copying a file into that bucket.
What currently works:
I open the CMD prompt and enter these lines one by one.
Now I want to create a batch file (.bat) to do the exact same thing, but apparently there are some syntax shifts between the two. The above dropped into a batch file doesn't work.
Any help?
A high level overview: I am using WinSCP to connect to an Amazon S3 bucket. Then I am copying a file into that bucket.
What currently works:
I open the CMD prompt and enter these lines one by one.
- "C:\Program Files (x86)\WinSCP\WinSCP.com"
- open savedS3
- put "M:\FUTURE\Production\pricingfiles\testdownload.csv" TestUpload.xlsx
- exit
- exit
Now I want to create a batch file (.bat) to do the exact same thing, but apparently there are some syntax shifts between the two. The above dropped into a batch file doesn't work.
Any help?