[8.5b3] Programs starting from left panel vs. right panel
Moderators: Hacker, petermad, Stefan2, white
[8.5b3] Programs starting from left panel vs. right panel
1. Run TC with a fresh.ini
2. Navigate from c:\ to c:\right\ in TC's right panel
3. Start notepad.exe from the command line (you must not have saved anything in notepad before)
4. Choose File - Save as... - Notepad suggests to save the file under c:\right\*.txt - correct
5. Cancel and close notepad
6. Navigate from c:\ to c:\left\ in TC's left panel
7. Start notepad.exe from the command line (you must not have saved anything in notepad before)
8. Choose File - Save as... - Notepad suggests to save the file under Documents - incorrect
Is the current dir / start path when running external programs from the command line set differently when started from TC's left vs. right panel?
(Please note I have changed the dir in the left panel before starting notepad so the current dir should be set to c:\left\)
Thanks
Roman
2. Navigate from c:\ to c:\right\ in TC's right panel
3. Start notepad.exe from the command line (you must not have saved anything in notepad before)
4. Choose File - Save as... - Notepad suggests to save the file under c:\right\*.txt - correct
5. Cancel and close notepad
6. Navigate from c:\ to c:\left\ in TC's left panel
7. Start notepad.exe from the command line (you must not have saved anything in notepad before)
8. Choose File - Save as... - Notepad suggests to save the file under Documents - incorrect
Is the current dir / start path when running external programs from the command line set differently when started from TC's left vs. right panel?
(Please note I have changed the dir in the left panel before starting notepad so the current dir should be set to c:\left\)
Thanks
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
- ghisler(Author)
- Site Admin
- Posts: 50923
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Which Windows version? Here on Windows 7 x64, Notepad.exe always suggests the last save path (where the last file was saved).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [8.5b3] Programs starting from left panel vs. right pane
No. Try a different program than notepad, for example:Hacker wrote:Is the current dir / start path when running external programs from the command line set differently when started from TC's left vs. right panel?
Code: Select all
cmd /c echo %cd% & pause
Christian,
white,
So why is it different with Notepad?
Roman
Windows 7 x64.Which Windows version?
Yes, that's why I stated you must not have saved anything in Notepad before. Ever. (Or perhaps there is a way to clear that "save path history" for Notepad.)Here on Windows 7 x64, Notepad.exe always suggests the last save path (where the last file was saved).
white,
So why is it different with Notepad?
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
No, the "you must not have saved anything in notepad before" condition is awkward. And I don't have Windows 7 64 bit.Hacker wrote:white,
Too late, I already saved something with Notepad, for testing purposes. Can you reproduce my results from the first post?
Did you also try left first and then right? Or right and then right again? What made you think it has anything to do with left/right?
Notepad uses comdlg to save files, so it's probably related to comdlg and not notepad. The dialog defaults to Documents if the MRU information does not give a valid result. When you delete the folder where a file was last saved or when you clear the mru list, the (default) Document folder is used. Perhaps when the mru list has never been used before, the current folder is used. Something like that. I think it is a Windows initialization thingy.
white,
OK, I renamed the dir Notepad had as its save path and after some further testing, it seems Notepad suggests the save path based on the dir it was launched from - sometimes it suggests the dir it was launched from, sometimes it suggests Documents. It seems that when testing before, by chance I had one type of dirs in the left panel and the other type in the right panel.
Notepad suggests the dir it was started from when I launch it from c:\download\ or c:\download\canon microsd\
However, it suggests Documents when I launch it from c:\download\asdasd\
Funny. But at least it seems an incosistent Notepad behavior, nothing to do with TC as I can reproduce the same behavior when starting Notepad from the console window.
Roman
OK, I renamed the dir Notepad had as its save path and after some further testing, it seems Notepad suggests the save path based on the dir it was launched from - sometimes it suggests the dir it was launched from, sometimes it suggests Documents. It seems that when testing before, by chance I had one type of dirs in the left panel and the other type in the right panel.
Notepad suggests the dir it was started from when I launch it from c:\download\ or c:\download\canon microsd\
However, it suggests Documents when I launch it from c:\download\asdasd\
Funny. But at least it seems an incosistent Notepad behavior, nothing to do with TC as I can reproduce the same behavior when starting Notepad from the console window.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.