Multiple files open

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
var0na
Junior Member
Junior Member
Posts: 9
Joined: 2013-07-24, 15:18 UTC

Multiple files open

Post by *var0na »

hello,

I open files with external text editor(notepad++) very often.
I do it one by one.
how can i open several files in one action ?

i mean mark files and then open them(F4).
Is it possible ?
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

The easier way to achieve this is:
1. create new user command and assign it to F4 hotkey:
Configuration - Options - Misc.
choose F4 from combobox,
click button with magnifier (loupe),
on left side of window scroll down to and click usercmd.ini,
click "New" button,
type name for new command (e.g. em_open_with_notepad++),
click "OK",

fill fields:

Command: e.g.

Code: Select all

"C:\Program Files\Notepad++\Notepad++.exe"
(You must use real pathname, existing in your system, you can use "Change" button and "Insert file name..." command from menu to navigate to notepad++.exe)

Parameters:

Code: Select all

%P%S
Start path:(you can leave empty)

Icon file: e.g.

Code: Select all

"C:\Program Files\Notepad++\Notepad++.exe"
(the same one as in command field)

Icon:(select one)

Tooltip:

Code: Select all

Open with Notepad++
(or any other, as you wish)

OK,OK,OK


Other possibilities:
2. use one of the edit redirectors e.g. F4Menu - http://www.ghisler.ch/board/viewtopic.php?t=17003
3. button on toolbar with %P%S parameters - no F4 shortcut though.
var0na
Junior Member
Junior Member
Posts: 9
Joined: 2013-07-24, 15:18 UTC

Post by *var0na »

thanks for detailed manual !

one thing you had missed in first method
OK,OK,OK
Before last "OK" you need to press green check button to apply command. after that press final OK :)

works fine for files that located on computer but for ftp files dont work =(

p.s. for text files located on ftp - notead++ opens empty file. :shock:
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

var0na wrote:...
one thing you had missed in first method
OK,OK,OK
Before last "OK" you need to press green check button to apply command. after that press final OK :)
...
I'm not missed it - press OK is enough - there's no need to press check button.
var0na
Junior Member
Junior Member
Posts: 9
Joined: 2013-07-24, 15:18 UTC

Post by *var0na »

for me custom user command started work only after pressing green button =(
only after that in field "Command" had saved command name "em_open_with_notepad++"
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Probably you use old version then - TC 7.04 or older?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

var0na,
You can try some tool like F4Menu. It allows opening multiple selected files at once and chosing editor to open files.
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

MVV wrote:var0na,
You can try some tool like F4Menu. It allows opening multiple selected files at once and chosing editor to open files.
As i wrote in my first post :)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Gral,
Really! :) Sorry, I've missed it. Anyway, I gave working download link (official FeMenu site is down now).
var0na
Junior Member
Junior Member
Posts: 9
Joined: 2013-07-24, 15:18 UTC

Post by *var0na »

MVV wrote: You can try some tool like F4Menu
again.. it works only for local files and dont for ftp files.
plus not convenient pup-up menu on start..
3. button on toolbar with %P%S parameters - no F4 shortcut though.
how can i do this ?
and what does mean %p%s parameters ?

trying to change topic...
How can i open several txt files from ftp for editing ? in one action.
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Navigate to "notepad++" directory, drag "notepad++.exe" and drop on the toolbar.
Now rightclick on just created button (call context menu) and choose "Change..."
You'll see "Change single button" dialog window, with fields:
Command:

Code: Select all

"C:\Program Files\Notepad++\notepad++.exe"
Parameters:(empty - here type:)

Code: Select all

%P%S
Start path:

Code: Select all

C:\Program Files\Notepad++\ 
Icon file:

Code: Select all

C:\Program Files\Notepad++\notepad++.exe 
Tooltip:

Code: Select all

notepad++ 
If you want know meaning of parameters just press F1 (or "Help" button) on dialog window, then you'll see:

"%P%S insert the names of all selected files into the command line, with full path."
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

%P%S won't help in case of FTP, it will pass just relative-to-root remote paths which are useless for local editor.
plus not convenient pup-up menu on start..
It is a feature that allows chosing editor for unknown files. If you type list of extensions for some editor, F4Menu will use it silently w/o any menu. For me it silently opens selected files in their associated editors by F4, but I press Win+F4 when I want to choose specific editor (e.g. hex or resource editor for executables, some image editors for graphics etc). Even UPX unpacker is registered as editor. :)
var0na
Junior Member
Junior Member
Posts: 9
Joined: 2013-07-24, 15:18 UTC

Post by *var0na »

Gral,
thanks for great guide, but result - same.
For ftp file notepad++ opens empty file, for local files works fine.

MVV,
for ftp files F4Menu opens only last one of marked files.
for local works fine.

Any editor that works with TC uses temp directory. Selected file is copying to directory like this - c:\Users\username\AppData\Local\Temp\_tc\ and after editing and saving file uploads back to ftp and local copy will be deleted.
Maybe exists some trick with paraments that can use temp directories.
If not - topic closed. =)
Post Reply