Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

fncruz wrote:

How can automation be done without batch file?

You run your batch file somehow - we do not know how - you have never told us.

A point of a batch file is to execute multiple commands. Yet your batch file has only one command - executing WinSCP. So the batch file is pointless. Instead of executing your single-command batch file, execute WinSCP directly - Replace execution of your batch file with execution of winscp.exe with the same arguments as you have in your batch file.
winscp.exe runs completely silently without any window.
https://winscp.net/eng/docs/executables
fncruz

"Nothing you have written so far need a use of a batch file"

I do not mind having WINScp open and running minimized but I cannot see how to automate.
How can automation be done without batch file?
martin

Re: FTP

Nothing you have written so far need a use of a batch file.

Avoid using batch file and you won't get any console window.

Or run batch file without a console window (what is not a WinSCP question).
See https://superuser.com/q/62525/213663
fncruz

FTP

Martin,
I want SCP to go to a FTP and copy all csv files then delete them. I believe that the only way to do this is to automate using a batch file to call up SCP. This in turn brings up the COS window.

I would like to have everything run invisibly without any window popup.

Can this be done?

Thanks.

FC
martin

Re: Output window STILL there (but empty)

Anonymous wrote:

I added the > nul but the output window still appeared with title "anonymous@10.19.1.100 - WinSCP"
Nothing appeared in the window which I assume is due to the > nul.

Is there a way to keep this window from popping up at all??

I'm not sure I understand. You are running a Windows batch file. That batch file (not WinSCP) opens the console window. So do you want to run a batch file without a window?
Do you even need the batch file for anything? How do you run it?
Guest

Output window STILL there (but empty)

I added the > nul but the output window still appeared with title "anonymous@10.19.1.100 - WinSCP"
Nothing appeared in the window which I assume is due to the > nul.

Is there a way to keep this window from popping up at all??
martin

Re: Hide output window

Redirect the output to nul:

@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/command ^
"open ftp://anonymous:anonymous@10.19.1.100/" ^
"cd /" ^
"lcd ""C:\ILC""" ^
"get -delete S*.csv" ^
"exit" > nul
exit
Guest

Hide output window

My batch file is as follows and I thought the echo off would do the trick.

@echo off
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/command ^
"open ftp://anonymous:anonymous@10.19.1.100/" ^
"cd /" ^
"lcd ""C:\ILC""" ^
"get -delete S*.csv" ^
"exit"
exit
Guest

Batch file -> How to keep window from popping up?

Hi,

I am successfully using a batch file to download files from my ftp server. When it does so a window opens and see the name of every file being downloaded.
How do I keep this from showing up??

I do not want to see anything. I can get any info from the log file.