Editor for F4

English support forum

Moderators: Hacker, petermad, Stefan2, white

klesako
Junior Member
Junior Member
Posts: 11
Joined: 2012-07-24, 14:54 UTC

Editor for F4

Post by *klesako »

Hi,
I use PSPad as my default editor for F4.
I use portable Total Commander 8.0 (2012-05-23) and also portable PSPad editor.

I set this to Total commander:
Configuration -> Operation -> Edit/View ->Editor:
"%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe"

It's working most of time, but not always ...
E.g.: when I tried to edit files in "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\" folder I had problems.

I tried to remove quotes, but that didnt help:
%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe

Pleasy try to fix it.


have a nice day
Roman
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7026
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

May be you should told us what problems you have ?
Your posting is confusing because TC is not responsible for any PSPad problems. I use TC and PSPad together from an USB stick since years without any problems.
User avatar
MaxX
Power Member
Power Member
Posts: 1197
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2klesako
Don't forget, that Win64 makes diffrent parhs for x32 and x64 program files dir for x32 and x64 soft.
If you want to use TC and PSPad editor this way - you'd better use %COMMANDER_DRIVE% path instead of %COMMANDER_PATH% - this won't make troubles.
Now, as I see, you have to change editor's path to:
%COMMANDER_DRIVE%\Program Files\PSPadEditor\PSPad.exe
or
%COMMANDER_DRIVE%\Program Files (x86)\PSPadEditor\PSPad.exe
depending on your situation.

p.s.
Never use "%COMMANDER_PATH%\..\" combinations for TC in program files dir on Win64!!!
Ukrainian Total Commander Translator. Feedback and discuss.
klesako
Junior Member
Junior Member
Posts: 11
Joined: 2012-07-24, 14:54 UTC

Post by *klesako »

I cannot post here, becasuse this:

Code: Select all

In order to try to prevent spammers, we do not allow our users to post URLs in any form until they have posted at least 1 legitimate posts and have been with us for more than 1 days. We appreciate your understanding in this matter in order to help us eliminate spam from this forum. If you have somehow gotten this message even though you meet both of the criteria, please let us know ASAP.

Thanks!
klesako
Junior Member
Junior Member
Posts: 11
Joined: 2012-07-24, 14:54 UTC

Post by *klesako »

Could you help me how to post my answer?
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Well, let's wait 1 day :)
Or try to type URL as text.
User avatar
petermad
Power Member
Power Member
Posts: 16151
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2klesako
"c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\" folder I had problems.
Well, you don't state what kind of problems you have. Can you not open files, can you not save files, or will the editor not open at all. Do you get any error messages, and if so what are they and are they from TC or PSPad.

If you try to save files in "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\" you have to have started TC in elevated mode (as administrator), otherwise you cannot change files in "c:\Program Files (x86)\"
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 16151
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2MaxX
Never use "%COMMANDER_PATH%\..\" combinations for TC in program files dir on Win64!
I don't think that klesako has neither his TC nor his PSPad in the program files dir - he explicitly says that he uses portable TC and PSPad.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
klesako
Junior Member
Junior Member
Posts: 11
Joined: 2012-07-24, 14:54 UTC

Post by *klesako »

I cannot use %COMMANDER_DRIVE%, because my TC is shared using Dropbox. My dropbox folder is located in different folders on different computers.
At home i have Windows 7 x86, at work Win 2008 R2 x64

I tried to do small test
1. Run command line

Code: Select all

cmd.exe
2. Write:

Code: Select all

d:\Dropbox\PortableApps\PSPadEditor\PSPad.exe c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TfsBuild.exe.config
3. File TfsBuild.exe.config is opened in PSPad - without problems
4. Result: see url: http://goo.gl/xhgaz

Other test:
1. Run TC

Code: Select all

d:\Dropbox\PortableApps\TotalCommander_8.0\TOTALCMD.EXE
2. Browse to

Code: Select all

c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\
3. Select TfsBuild.exe.config and click F4
4. Many empty files were open
5. Result: see url: http://goo.gl/AfLQw

Sorry, i cant post images here. [img] tags dont work for imageshack urls. User provided URLs

For sure this is not problem of the editor, because it worked from command promt. :)
User avatar
petermad
Power Member
Power Member
Posts: 16151
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Try this in TC's Configuration -> Operation -> Edit/View ->Editor:
"%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe" "%1"
or
"%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe" %1
or
"%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe %1"
or
%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe %1
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
klesako
Junior Member
Junior Member
Posts: 11
Joined: 2012-07-24, 14:54 UTC

Post by *klesako »

Hi,
i thought that it could help, but didnt :(
Look at this:

"%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe" "%1"
Image: http://i50.tinypic.com/2mg2t68.jpg

"%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe" %1
Image: http://i48.tinypic.com/2hpktwy.jpg

"%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe %1"
Image: http://i47.tinypic.com/2w4n2i9.jpg

%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe %1
Image: http://i45.tinypic.com/bfnipd.jpg
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

klesako, use Process Explorer (or another advanced task manager) to see exact PSPad's command line that TC used to start it for all cases.

Windows requires to enclose paths containing spaces with quotes, so that one should be most correct:

Code: Select all

d:\Dropbox\PortableApps\PSPadEditor\PSPad.exe "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TfsBuild.exe.config"
klesako
Junior Member
Junior Member
Posts: 11
Joined: 2012-07-24, 14:54 UTC

Post by *klesako »

It's strange,
i found that behavior of PSPad depends of running state:

e.g.:
Case A:
1. PSPad is closed
2. Click on TfsBuild.exe.config (see previous posts) + Click F4
3. All works - OK

Case B:
1. PSPad is running (no open documents)
2. Click on TfsBuild.exe.config (see previous posts) + Click F4
3. Multiple empty documents were opened ("PSPad.exe", "Program", "Files", "Microsoft", "Visual", "Studio", "TfsBuild.exe.config")
4. FAIL

Case C:
1. PSPad is running (2 open documents)
2. Click on TfsBuild.exe.config (see previous posts) + Click F4
3. Again - multiple empty documents were opened ("PSPad.exe", "Program", "Files", "Microsoft", "Visual", "Studio", "TfsBuild.exe.config")
4. FAIL

I checked command prompt using Process explorer. Looks OK:

Code: Select all

"D:\Dropbox\PortableApps\TotalCommander_8.0\..\PSPadEditor\PSPad.exe" "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config"
Currently i have this in TC settings (including quotes):

Code: Select all

"%COMMANDER_PATH%\..\PSPadEditor\PSPad.exe"
Why is there different behavior in case of running PSPad?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It seems like PSPad's bug (maybe it unquotes command line parameter and passes to already started copy and it parses it as filelist). Try to open that file in PSPad via Explorer when PSPad is already started.
klesako
Junior Member
Junior Member
Posts: 11
Joined: 2012-07-24, 14:54 UTC

Post by *klesako »

That's not true.
Ctrl+O (open file dialog) works in PSPad for the same file.
Drag and drop works also.
Doubble click in windows explorer works too.
There must be problem in TC .... but i cannot debug it ...

Try to simulate my problem on your own computer ;)
Post Reply