Jump to content

Q: how to "save as" in current directory


Recommended Posts

Guest Phantom Lord
Posted

"Malcolm Dew-Jones" <yf110@vtn1.victoria.tc.ca> ha scritto nel messaggio

news:46f00bd2$1@news.victoria.tc.ca...

> Hello

>

> I am using windows XP, and I an trying to get the file open and save as

> dialogs to use the current directory instead of "My Documents" or the

> saved directory from last time.

>

> For example, in (much) older windows I could lauch notepad fron the

> command line and the save-as and open dialogs would be using the directory

> from within which I opened notepad.

> Anyway, what I want to know is how to override all this nonsense and

> simply has all these applications to open and save to the current

> directory.

 

little Hint:

if you are working in a few folders most of the time, just put a shortcut to

them in MyDocuments folder...

 

sometimes i have the opposite problem, i had to open dozens of file in a

folder, edit them one by one and save it in a different folder. The

application's "save as" always started in the last folder.. i solved putting

shortcuts in both folders to each other..

 

--

Mauro Poletto

Lonato(Bs) Italy

http://blogs.dotnethell.it/papu

-SpamCop powered-

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Malcolm Dew-Jones
Posted

Q: how to "save as" in current directory

 

Hello

 

I am using windows XP, and I an trying to get the file open and save as

dialogs to use the current directory instead of "My Documents" or the

saved directory from last time.

 

For example, in (much) older windows I could lauch notepad fron the

command line and the save-as and open dialogs would be using the directory

from within which I opened notepad.

 

However in XP this isn't the case. Even if I use

START /Dmypath noptepad.exe , or the the "Start as:" entry in a short

cut, the notepad save-as and open do not use "mypath".

 

The current directory is still correct for application code I write myself

- the current directory of the app is the one that was current when it was

launched - so I know that either notepad of the dialogs are doing

something to override the current directory.

 

 

A similar things happens with some other applications, where the open and

save-as use the last location instead of the current directory. I have

mostly solved that by setting HKEY_CURRENT_USER\Software\Microsoft\

Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedMRU to be inaccessible

to myself so the app can't read the value (and instead defaults to the

current directory, which is exactly what I want.)

 

Anyway, what I want to know is how to override all this nonsense and

simply has all these applications to open and save to the current

directory.


×
×
  • Create New...