1. [DOS] WinNT Problem Focused

This program doesn't do right in WinNT:

    include longname.e
    object junk
    junk = open( "alongname.txt" , "w")
    close(junk)

Instead of creating a file called "alongname.txt," it creates,
"alongnam.txt" (note the truncated 'e').

So, what's the solution? smile

Thanks!
ck



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

new topic     » topic index » view message » categorize

2. Re: [DOS] WinNT Problem Focused

ck lester wrote:

> junk = open( "alongname.txt" , "w")

You can only *create* 8.3 filenames in Euphoria. This limitation only exists
for file creation.

I'm fairly certain that someone wrapped a lot of these Win32 file services,
including open with long file name. If not, you could always open the file
with a bogus name, close it, rename it, and then open it with the long name.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

3. Re: [DOS] WinNT Problem Focused

Another trick is to shell out to DOS with something like 'echo >"very long
file name.ext"' then in Euphoria open it with the "w" parameter.


-----
cheers,
Derek Parnell
derekp at solace.com.au
Solace Limited ( http://www.solace.com.au )
Melbourne, Australia
+61 3 9291 7557

new topic     » goto parent     » topic index » view message » categorize

4. Re: [DOS] WinNT Problem Focused

Can someone tell me why I received Derek's response to David's reply BEFORE
I received David's reply? Thanks.

Anyway, David, I'm using "longname.e," which does what we want in Win9x...
However, it apparently fails in NT! That's my dilemma. But, you're right,
I'll probably just create a dummy file then rename it to the long filename.

Derek, I don't think that will work in NT... but I'll check tomorrow when I
get back to work.

Thanks guys!

> -----Original Message-----
> From: Euphoria Programming for MS-DOS
> [mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]On Behalf Of Derek Parnell
> Sent: Monday, October 16, 2000 5:33 PM
> To: EUPHORIA at LISTSERV.MUOHIO.EDU
> Subject: Re: [DOS] WinNT Problem Focused
>
>
> Another trick is to shell out to DOS with something like 'echo >"very long
> file name.ext"' then in Euphoria open it with the "w" parameter.
>
>
> -----
> cheers,
> Derek Parnell
> derekp at solace.com.au
> Solace Limited ( http://www.solace.com.au )
> Melbourne, Australia
> +61 3 9291 7557
> ======================================================================
> Solace Limited and its related companies do not verify, endorse or
> otherwise support the contents of the material transmitted with this
> message and cannot be held responsible in any way for the information
> contained in any such material or for any action taken by a recipient
> of this information in relation thereto.
> ======================================================================
>
>
> >-----Original Message-----
> >From: Derek Parnell [mailto:dparnell at bigpond.net.au]
> >Sent: Tuesday, October 17, 2000 9:23 AM
> >To: derekp at solace.com.au
> >Subject: Re: [DOS] WinNT Problem Focused
> >
> >
> >ck lester wrote:
> >
> >> junk = open( "alongname.txt" , "w")
> >
> >You can only *create* 8.3 filenames in Euphoria. This limitation
> >only exists
> >for file creation.
> >
> >I'm fairly certain that someone wrapped a lot of these Win32
> file services,
> >including open with long file name. If not, you could always
> open the file
> >with a bogus name, close it, rename it, and then open it with the
> >long name.
> >
> >-- David Cuny
> >


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

new topic     » goto parent     » topic index » view message » categorize

5. Re: [DOS] WinNT Problem Focused

Hi ck,

I checked around the archive and couldn't see anything that called
the WinAPI CreateFile directly.
I modified win32fil.ew again (created by Jeffrey Fielding -
thanks again Jeffrey) to add the CreateFile API call.

Note: There are heaps of options for The Win API CreateFile which I have
defaulted to standard values.

You can pick the modified win32fil.zip file from:

http://members.nbci.com/ray_223/sw/

I tested it under win98 and it worked fine but don't have access to a WinNT
here at work, I'll see if I can test it out tonight at home.

You will have to do a CreateFile("whatever")
followed by an open file "I THINK".


Hope this works!

Ray Smith

>> >ck lester wrote:
>> >
>> >> junk = open( "alongname.txt" , "w")
>> >
>> >You can only *create* 8.3 filenames in Euphoria. This limitation
>> >only exists
>> >for file creation.
>> >
>> >I'm fairly certain that someone wrapped a lot of these Win32
>> file services,
>> >including open with long file name. If not, you could always
>> open the file
>> >with a bogus name, close it, rename it, and then open it with the
>> >long name.
>> >
>> >-- David Cuny
>> >
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>

new topic     » goto parent     » topic index » view message » categorize

6. Re: [DOS] WinNT Problem Focused

I did some testing on NT and it all seems to work ok ... after some quick
changes
to the little test program I used.

I also removed a refernce to an include I was using the modified win32fil.ew
with.

I also added a CloseHandle API call to win32fil.ew to gracefully close the
file handle
after the CreateFile API routine is called.

All in all I think it should be able to do the job.

Check out win32fil.zip at:
http://members.nbci.com/ray_223/sw/
For the modified win32fil.ew and a little test program.

Ray Smith.


----- Original Message -----
From: Ray Smith <smithr at IX.NET.AU>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Tuesday, October 17, 2000 2:32 PM
Subject: Re: [DOS] WinNT Problem Focused


> Hi ck,
>
> I checked around the archive and couldn't see anything that called
> the WinAPI CreateFile directly.
> I modified win32fil.ew again (created by Jeffrey Fielding -
> thanks again Jeffrey) to add the CreateFile API call.
>
> Note: There are heaps of options for The Win API CreateFile which I have
> defaulted to standard values.
>
> You can pick the modified win32fil.zip file from:
>
> http://members.nbci.com/ray_223/sw/
>
> I tested it under win98 and it worked fine but don't have access to a
WinNT
> here at work, I'll see if I can test it out tonight at home.
>
> You will have to do a CreateFile("whatever")
> followed by an open file "I THINK".
>
>
> Hope this works!
>
> Ray Smith
>
> >> >ck lester wrote:
> >> >
> >> >> junk = open( "alongname.txt" , "w")
> >> >
> >> >You can only *create* 8.3 filenames in Euphoria. This limitation
> >> >only exists
> >> >for file creation.
> >> >
> >> >I'm fairly certain that someone wrapped a lot of these Win32
> >> file services,
> >> >including open with long file name. If not, you could always
> >> open the file
> >> >with a bogus name, close it, rename it, and then open it with the
> >> >long name.
> >> >
> >> >-- David Cuny
> >> >
> >
> >
> >_________________________________________________________
> >Do You Yahoo!?
> >Get your free @yahoo.com address at http://mail.yahoo.com
> >

new topic     » goto parent     » topic index » view message » categorize

7. Re: [DOS] WinNT Problem Focused

For another 'hacked' example using CreateFileA(), and CloseHandle(), you can
check out the attrib2.exw example in the Win32 Tutorials.
...Wolf
> > I checked around the archive and couldn't see anything that called
> > the WinAPI CreateFile directly.
> > I modified win32fil.ew again (created by Jeffrey Fielding -

new topic     » goto parent     » topic index » view message » categorize

8. Re: [DOS] WinNT Problem Focused

Let me restate that the problem is occurring from a DOS EUPHORIA program,
NOT a Windows one!

Therefore, using the "WinAPI" is unavailable to me for this function... no?

(.e files, not .ew files; an .ex file, not an .exw file)

Thanks!
ck

----- Original Message -----
From: Ray Smith <smithr at IX.NET.AU>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Monday, October 16, 2000 11:32 PM
Subject: Re: [DOS] WinNT Problem Focused


> Hi ck,
>
> I checked around the archive and couldn't see anything that called
> the WinAPI CreateFile directly.
> I modified win32fil.ew again (created by Jeffrey Fielding -
> thanks again Jeffrey) to add the CreateFile API call.
>
> Note: There are heaps of options for The Win API CreateFile which I have
> defaulted to standard values.
>
> You can pick the modified win32fil.zip file from:
>
> http://members.nbci.com/ray_223/sw/
>
> I tested it under win98 and it worked fine but don't have access to a
WinNT
> here at work, I'll see if I can test it out tonight at home.
>
> You will have to do a CreateFile("whatever")
> followed by an open file "I THINK".
>
>
> Hope this works!
>
> Ray Smith
>
> >> >ck lester wrote:
> >> >
> >> >> junk = open( "alongname.txt" , "w")
> >> >
> >> >You can only *create* 8.3 filenames in Euphoria. This limitation
> >> >only exists
> >> >for file creation.
> >> >
> >> >I'm fairly certain that someone wrapped a lot of these Win32
> >> file services,
> >> >including open with long file name. If not, you could always
> >> open the file
> >>


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu