Topic: Edit Restore in current directory bug? (1 of 3), Read 33 times
Conf: Startup, File Open, Exit
From: Rich Hureau
Date: Friday, October 12, 2001 08:46 AM

I've been trying to use the option "Save edit session in current
directory." It's confusing enough that I'm not sure there is a
bug. However, let me describe what is happening. Maybe I'm just
not understanding how it is supposed to work.

Background: I have "UserCfgDir=c:\vedit" in Vedit.ini

I have "Save edit session in current directory" checked. I close
Vedit.

I then doubleclick a .txt file in Windows Explorer, in the
c:\testit subdir. This causes Vedit to open, editing this file.
I open a few more files in that directory. I then check the
File->Enable edit restore option and exit.

The files veditsav.env and veditsav.dat file both show up in the
c:\testit subdir. So far, so good.

However, after that, I see no way to open Vedit and get it to
use these files. I tried Start->Run and then the command:
c:\vedit\vpw.exe -c chdir("c:\testit")

I thought for sure this would do it, but no. It opens Vedit, but
ignores the 2 environment files in that directory and comes up
with no files opened. If I go to command mode and try chdir, it
shows that c:\testit is the current directory. If I then close
Vedit, the 2 environment files remain in the subdir.

So, exactly how can you open Vedit and get it to use the restore
files in a particular subdir? Doubleclicking a file in the
testit subdir will not work because opening a specific file is
documented as not doing a restore.

Is this a bug??

Thanks,
Rich

 


Topic: Re: Edit Restore in current directory bug? (2 of 3), Read 33 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Friday, October 12, 2001 01:05 PM

At 08:46 AM 10/12/2001, you wrote:
>I've been trying to use the option "Save edit session in current
>directory." It's confusing enough that I'm not sure there is a
>bug. However, let me describe what is happening. Maybe I'm just
>not understanding how it is supposed to work.

This function will work if you use a DOS/NT box, "cd" to the desired directory and then invoke VEDIT from there. It would also work if you change the VEDIT icon's properties "Start in" to the desired directory. You might then want several copies of the VEDIT icon for different starting directories.

Once we implement "Projects", there really should be no further use for this option. It was just a primitive way of saving/opening projects in different directories.

Windows gives you very little control over the "current directory". I typically have 3 - 4 DOS boxes open at all times, each set to a different directory. I may have used Explorer once in the last week.

Interestingly, the DOS boxes have gotten more powerful with each new version of Windows, especially in Windows 2000. You can push/pop the current directory (e.g. in a batch file) and much more. You enter enter just a filename, it opens the file with the associated program.

In Windows 2000 you can even change the priorities of programs when you start them.

In my opinion, to enjoy the full flexibility of Windows, you have to run it from a DOS box!

Ted.

 


Topic: Re: Edit Restore in current directory bug? (3 of 3), Read 33 times
Conf: Startup, File Open, Exit
From: Rich Hureau
Date: Friday, October 12, 2001 06:41 PM

Thanks for the explanation. Yes, what I was really trying to do was what a Project would accomplish. I thought about trying a DOS box for invocation, but I figured that Start->Run was about the same, and that starting a Windows program from DOS, while possible, was kind of weird. Go figure. :-)