Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

Re: batch file to open multiple txt files within WinSCP ?/

cvj wrote:

whilst you here how can i clear the lists in the drop down menu of the "shift f4" window ?

Use Ctrl+Del.
cvj

Re: batch file to open multiple txt files within WinSCP ?/

Got it thanks for your patients !!
whilst you here how can i clear the lists in the drop down menu of the "shift f4" window ?
martin

Re: batch file to open multiple txt files within WinSCP ?/

I didn't write that you can use the semicolon with the command-line /edit switch.

You have asked if you can open multiple files from WinSCP, instead of commandline. I've assumed that you mean WinSCP GUI. And that's what my previous post shows.
cvj

Re: batch file to open multiple txt files within WinSCP ?/

ok now this I did already try tho. I can open each file as just one but both together ,, no

@echo off

"F:\WinSCP\WinSCP.exe" "BR" /edit /home/autoconfig.json; /home/config.js
martin

Re: batch file to open multiple txt files within WinSCP ?/

You can use Shift+F4 and type (or rather paste or later select from the history) a semicolon-separated list of the files you want to edit.

See https://winscp.net/eng/docs/task_edit
cvj

Re: batch file to open multiple txt files within WinSCP ?/

yeah that I have seen and does help but I have to log in to server every time I start new instance/file tho,,,

is there no way this type of command can be executed from within WinSCP rather than from windows command prompt ?
martin

Re: batch file to open multiple txt files within WinSCP ?/

No. But you can run multiple instances of WinSCP.
cvj

Re: batch file to open multiple txt files within WinSCP ?/

Yeah thanks ,,
So can I do open multiple files on one line tho ?

"F:\WinSCP\WinSCP.exe" "BR" /edit /home/autoconfig.json config.json
martin

Re: batch file to open multiple txt files within WinSCP ?/

Well, you can generate the URL. But in this case, I believe it's better to refer to your saved site on the command-line, to avoid duplicating the login info:
"C:\Program Files (x86)\WinSCP\WinSCP.exe" "site_name" /edit /remote/path/file.txt
cvj

Re: batch file to open multiple txt files within WinSCP ?/

thanks
what do i do generate the session URL then use "/edit " ?
cvj

[SOLVED] batch file to open multiple txt files within WinSCP ?/

I use winscp on my lynux server to view and edit multiple text files using the internal editor..

what I would like to know is :- can I make some sort of batch file that will open multiple files to save me having to open all the files one at a time

thanks