Topic: File open - difference between VEDIT -> Open and.. (1 of 10), Read 84 times
Conf: Startup, File Open, Exit
From: John H
Date: Sunday, April 18, 2004 06:28 PM

I keep some html files in a directory 'x:\web pages' -- when I open via a right-click SendTo VEDIT I made or from a program called Total Commander (to edit) the filespec is shown in VE as the shortened name 'x:\webpag~\filename.htm' and I can use the file->open more->preview in browser fine.

When I open the same file from within VE the long version of the filespec is used, 'x:\web pages\filename.htm' and then the space breaks the URL so the browser tries to load
'file://localhost/D:/WEB'

Is this something I need to work around or perhaps a bug?

 


Topic: File open - difference between VEDIT -> Open and.. (2 of 10), Read 83 times, 1 File Attachment
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Monday, April 19, 2004 02:58 AM

John:

On 4/18/2004 6:28:19 PM, you wrote:
>I keep some html files in a directory 'x:\web pages' --
>[...]
>When I open the same file from within VE the long version of
>the filespec is used, 'x:\web pages\filename.htm' and then
>the space breaks the URL so the browser tries to load
>'file://localhost/D:/WEB'
>
>Is this something I need to work around or perhaps a bug?

It seems to be a bug.
(Spaces in a filespec is a bug by definition IMHO, but I'm old school...)

Please copy the attached macro into your VEDIT\macros directory (make a backup of the original opencurs.vdm before!) and try again.

BTW: What versions of Windows and VEDIT are you using?
I wonder why the Send-To gives you the shortened pathname.

Christian

 
Fixed macro to handle spaces in filespec

 


Topic: File open - difference between VEDIT -> Open and.. (3 of 10), Read 95 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Friday, April 23, 2004 03:10 AM

On 4/19/2004 2:58:52 AM, I wrote:

>Please copy the attached macro into your
>VEDIT\macros directory (make a backup of
>the original opencurs.vdm before!) and
>try again.

I tried to further improve the macro.

If you are courageous, you can try the macro version attached to THIS message. ;-)

Ted:
File_Exist("...", NOERR) fails with "BAD FILENAME" if the filename is illegal like "file://C:/filename.txt".
The option NOERR has no effect in this case.

http://ziemski.privat.t-online.de/vedit/macros/opencurs.vdm

Christian

 


Topic: File open - difference between VEDIT -> Open and.. (4 of 10), Read 81 times
Conf: Startup, File Open, Exit
From: John H
Date: Monday, April 19, 2004 05:15 AM

On 4/19/2004 2:58:52 AM, Christian Ziemski wrote:

Hi Christain, I appreciate the macro updates!

>It seems to be a bug.
>(Spaces in a filespec is a bug by
>definition IMHO, but I'm old school...)

Agreed, I'll take your word on being old school. Not many assembly programmers writing applications these days it seems. :-) Happen to know a fellow named Kim Watt?

Anyhow, the mods (both of them) cured the problem. I did notice however if I use a parameter (EG: vpw -s filespec) then the pathname reverts back to short form.

>BTW: What versions of Windows and VEDIT are you using?

VPW[64] 6.12.1 and VEDIT 6.11.1
Windows 2000, 98SE & 95C

I applied some security 'hotfixes' from msnet which were released just a couple days ago.. Don't think I tried the preview in browser before I had patched W2K.

 


Topic: File open - difference between VEDIT -> Open and.. (5 of 10), Read 84 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Monday, April 19, 2004 05:30 AM

John:

On 4/19/2004 5:15:34 AM, John H wrote:
>
>Happen to know a fellow named Kim Watt?

No I don't know him.
Google found a guy dedicated to TRS80's (in 1982). Is that the one?

>Anyhow, the mods (both of them) cured the problem.

Good.

>I did notice however if I use a parameter (EG: vpw -s filespec)
>then the pathname reverts back to short form.

That doesn't happen here! And I'm using W2000 too.

Strange. If I remember correctly there somewhere is a OS parameter for using long/short filenames.
(I don't think it's VEDIT's part here. But I'm not sure.)

Christian

 


Topic: File open - difference between VEDIT -> Open and.. (6 of 10), Read 89 times
Conf: Startup, File Open, Exit
From: John H
Date: Monday, April 19, 2004 06:13 AM

Morning,

>>Happen to know a fellow named Kim Watt?
>
>No I don't know him.
>Google found a guy dedicated to TRS80's
>(in 1982). Is that the one?

Yes. He is responsible for several programs sold by breeze/qsd aka powersoft that were extremely successful and popular for the TRS-80. I presume breeze was formed around the same time Greenview did.

>>I did notice however if I use a parameter
>>(EG: vpw -s filespec) then the pathname reverts
>>back to short form.
>
>That doesn't happen here! And I'm using
>W2000 too.

Maybe I should elaborate on that some, I am specifically referring to invoking VPW from a program called Total Commander, as an external editor. I can't imagine it make a difference but perhaps. Anyhow I place in the external editor field VPW.EXE -S and the path is shortened, w/o the -S it's long. Nothing major, I since have set instances to 1 in vedit and dropped the parameter. Either way it really didn't seem to present a problem.

>Strange. If I remember correctly there somewhere is a OS >parameter for using long/short filenames.
>(I don't think it's VEDIT's part here. But I'm not sure.)

Hmm. I'm a hold out. I only began to use W2K a few months ago. I'm not aware of it's nuts and bolts too much. At any rate, I'll examine this stuff some more later. Tired. I blew my schedule by staying up all night.

 


Topic: File open - difference between VEDIT -> Open and.. (7 of 10), Read 98 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Monday, April 19, 2004 07:53 AM

On 4/19/2004 6:13:35 AM, John H wrote:
>>>I did notice however if I use a parameter
>>>(EG: vpw -s filespec) then the pathname reverts
>>>back to short form.
>>
>>That doesn't happen here! And I'm using W2000 too.
>
>Maybe I should elaborate on that some, I am specifically
>referring to invoking VPW from a program called Total
>Commander, as an external editor. I can't imagine it
>make a difference but perhaps. Anyhow I place in the external
>editor field VPW.EXE -S and the path is shortened, w/o the
>-S it's long.
>[...]

I now tried it with Total Commander too and there I can reproduce the short names when using parameters like -s or -b when calling VEDIT as external editor.

But I still think it has to do with the way TC calls external programs. Perhaps it uses command.com as shell even under W2k and not cmd.exe? (Just a guess.)

I'll try to test it with another program which can use an external editor, when I find one.

Christian

 


Topic: Re: File open - difference between VEDIT -> Open and.. (9 of 10), Read 73 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Saturday, April 24, 2004 05:11 PM

John:

On Mon, 19 Apr 2004 05:15:00 -0400, you wrote:

>Anyhow, the mods (both of them) cured the problem. I did notice however if I
>use a parameter (EG: vpw -s filespec) then the pathname reverts back to short
>form.

In the case you are using the second version of opencurs.vdm (posted
here in this thread at 19.04.2004):

There is a bug in it which fails to close a temporary buffer in some
cases.

It's fixed now and the new version can be downloaded here:
http://ziemski.privat.t-online.de/vedit/macros/opencurs.vdm

Christian

 


Topic: File open - difference between VEDIT -> Open and.. (10 of 10), Read 79 times
Conf: Startup, File Open, Exit
From: John H
Date: Saturday, April 24, 2004 05:38 PM

On Sat, 24 Apr 2004 17:12:44 -0400 GMT, Christian Ziemski wrote:

> There is a bug in it which fails to close a temporary buffer in some
> cases.

> It's fixed now and the new version can be downloaded here:
> http://ziemski.privat.t-online.de/vedit/macros/opencurs.vdm

Thanks Christian! Got it.

--
John

 


Topic: Re: File open - difference between VEDIT -> Open and.. (8 of 10), Read 79 times
Conf: Startup, File Open, Exit
From: Ted Green
Date: Monday, April 19, 2004 11:17 AM

At 06:28 PM 4/18/2004, you wrote:
>When I open the same file from within VE the long version of the filespec is used, 'x:\web pages\filename.htm' and then the space breaks the URL so the browser tries to load
>'file://localhost/D:/WEB'
>
>Is this something I need to work around or perhaps a bug?

I recall it was a bug in Windows 95/98; if you dragged/dropped a filename with spaces onto an icon (such as Word, VEDIT, etc), it opened with the equivalent short filename.

I don't see this behavior in Window 2000.

I suspect your intermediate program is not setting up the registry entries correctly.

Just copy the VEDIT icon to this folder:

c:\documents and settings\all users\sendto

VEDIT will then appear in the right-click "Send to" sub-menu.

Ted.