1. [DOS] WinNT Problem Focused
- Posted by ck lester <cklester at YAHOO.COM> Oct 16, 2000
- 586 views
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? Thanks! ck __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
2. Re: [DOS] WinNT Problem Focused
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Oct 16, 2000
- 537 views
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
3. Re: [DOS] WinNT Problem Focused
- Posted by Derek Parnell <derekp at solace.com.au> Oct 17, 2000
- 536 views
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
4. Re: [DOS] WinNT Problem Focused
- Posted by ck lester <cklester at YAHOO.COM> Oct 16, 2000
- 524 views
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
5. Re: [DOS] WinNT Problem Focused
- Posted by Ray Smith <smithr at IX.NET.AU> Oct 17, 2000
- 609 views
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 >
6. Re: [DOS] WinNT Problem Focused
- Posted by Ray & Debbie Smith <smithr at IX.NET.AU> Oct 17, 2000
- 606 views
- Last edited Oct 18, 2000
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 > >
7. Re: [DOS] WinNT Problem Focused
- Posted by wolfgang fritz <wolfritz at king.igs.net> Oct 17, 2000
- 532 views
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 -
8. Re: [DOS] WinNT Problem Focused
- Posted by ck lester <cklester at YAHOO.COM> Oct 19, 2000
- 665 views
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