1. Dir Problem
- Posted by "Daniel Kluss" <xerox_irs at hotmail.com> May 20, 2004
- 587 views
I get the following problem from dir in file.e on windows xp home the program is a two liner the folder "data" does not exist Any comments whole be greatly appriciated Daniel ------------dir.exw include file.e ? dir("data\\*.") --------------------error screen c:\euphoria\include\file.e:101 in function dir() A machine-level exception occurred during execution of this statement ... called from C:\Documents and=20 Settings\Owner\Desktop\inv\src\current\dir.exw: 3 --> see ex.err Press Enter... --------------------------ex.err c:\euphoria\include\file.e:101 in function dir() A machine-level exception occurred during execution of this statement name = {100'd',97'a',116't',97'a',92'\',42'*',46'.'} ... called from C:\Documents and=20 Settings\Owner\Desktop\inv\src\current\dir.exw:3 Global & Local Variables c:\euphoria\include\misc.e: pretty_end_col = <no value> pretty_chars = <no value> pretty_start_col = <no value> pretty_level = <no value> pretty_file = <no value> pretty_ascii = <no value> pretty_indent = <no value> pretty_ascii_min = <no value> pretty_ascii_max = <no value> pretty_fp_format = <no value> pretty_int_format = <no value> pretty_line = <no value> c:\euphoria\include\file.e: SLASH = 92'\' my_dir = -2
2. Re: Dir Problem
- Posted by Brian Broker <bkb at cnw.com> May 20, 2004
- 538 views
While it is interesting that your program doesn't crash with ex.exe, it does, indeed, crash with exw.exe. However I've found that the following does work fine with exw.exe:
include file.e ? dir("data")
But I did notice some minor differences between results using exwc.exe: { { {46}, {100}, 0, 2004, 5, 20, 2, 59, 32 }, { {46,46}, {100}, 0, 2004, 5, 20, 2, 59, 32 }, { {115,104,105,116,46,116,120,116}, {97}, 16, 2004, 5, 20, 2, 59, 14 } } and ex.exe: { { {46}, {100}, 0, 2004, 5, 20, 2, 58, 24 }, { {46,46}, {100}, 0, 2004, 5, 20, 2, 58, 24 }, { {83,72,73,84,46,84,88,84}, {97}, 16, 2004, 5, 20, 2, 59, 14 } } -- Brian
3. Re: Dir Problem
- Posted by Nickofurr at aol.com May 20, 2004
- 539 views
-------------------------------1085087126 In a message dated 5/20/2004 4:49:28 AM Eastern Standard Time, xerox_irs at hotmail.com writes: I get the following problem from dir in file.e on windows xp home the program is a two liner the folder "data" does not exist Any comments whole be greatly appriciated Daniel ------------dir.exw include file.e ? dir("data\\*.") I see that you used a wildcard '*', but you did not include "wildcard.e" Also, the way you have it, it will look for data in the current Working Directory. to remedy this, you should say dir("..\\data\\*.*") OR dir(".\\data\\*.*") And you should include 'wildcard.e'. Also, I dont think you should use '?' for the job. If you must, then use "pretty_print()". With Luck, Nicholas <HTML><HEAD> <META charset=US-ASCII http-equiv=Content-Type content="text/html; charset=US-ASCII"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD> <BODY style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; BACKGROUND-COLOR: #ff0000"> <DIV> <DIV>In a message dated 5/20/2004 4:49:28 AM Eastern Standard Time, xerox_irs at hotmail.com writes:</DIV> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: blue 2px solid"><FONT face=Arial>I get the following problem from dir in file.e on windows xp home<BR>the program is a two liner<BR>the folder "data" does not exist<BR>Any comments whole be greatly appriciated<BR>Daniel<BR>------------dir.exw<BR>include file.e<BR><BR>? dir("data\\*.")</FONT></BLOCKQUOTE></DIV> <DIV><FONT style="BACKGROUND-COLOR: #ff8040" face="Times New Roman" color=#ffff00>I see that you used a wildcard '*', but you did not include "wildcard.e" Also, the way you have it, it will look for data in the current Working Directory. to remedy this, you should say </FONT></DIV> <DIV><FONT style="BACKGROUND-COLOR: #ff8040" face="Times New Roman" color=#ffff00><STRONG>dir("..\\data\\*.*")</STRONG></FONT></DIV> <DIV><FONT style="BACKGROUND-COLOR: #ff8040" face="Times New Roman" color=#ffff00>OR</FONT></DIV> <DIV><FONT style="BACKGROUND-COLOR: #ff8040" face="Times New Roman" color=#ffff00><STRONG>dir(".\\data\\*.*")</STRONG></FONT></DIV> <DIV><FONT style="BACKGROUND-COLOR: #ff8040" face="Times New Roman" color=#ffff00>And you should include 'wildcard.e'. Also, I dont think you should use '?' for the job. If you must, then use "pretty_print()".</FONT></DIV> <DIV><FONT style="BACKGROUND-COLOR: #ff8040" face="Times New Roman" color=#ffff00>With Luck,</FONT></DIV> <DIV><FONT style="BACKGROUND-COLOR: #ff8040" face="Times New Roman" color=#ffff00>Nicholas</FONT></DIV></BODY></HTML>
4. Re: Dir Problem
- Posted by irv mullins <irvm at ellijay.com> May 21, 2004
- 568 views
unknown wrote: > ? dir("data\\*.") > I see that you used a wildcard '*', but you did not include "wildcard.e" No need to include wildcard.e, any more than you need to when you are using the DOS command DIR *.* That expansion is done by the operating system, not Euphoria. > Also, the way you have it, it will look for data in the current Working > Directory. to remedy this, you should say > dir("..\\data\\*.*") > OR > dir(".\\data\\*.*") These two are different. The two dots return the parent directory, one dot returns the current directory. Irv
5. Re: Dir Problem
- Posted by Nickofurr at aol.com May 21, 2004
- 538 views
-------------------------------1085099464 In a message dated 5/20/2004 8:03:13 PM Eastern Standard Time, guest at RapidEuphoria.com writes: > Also, the way you have it, it will look for data in the current Working > Directory. to remedy this, you should say > dir("..\\data\\*.*") > OR > dir(".\\data\\*.*") These two are different. The two dots return the parent directory, one dot returns the current directory. Irv I know. the one you use depends on what you need. <HTML><HEAD> <META charset=US-ASCII http-equiv=Content-Type content="text/html; charset=US-ASCII"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD> <BODY style="FONT-SIZE: 12pt; FONT-FAMILY: Arial; BACKGROUND-COLOR: #ff0000"> <DIV> <DIV>In a message dated 5/20/2004 8:03:13 PM Eastern Standard Time, guest at RapidEuphoria.com writes:</DIV> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: blue 2px solid"><FONT face=Arial>> Also, the way you have it, it will look for data in the current Working <BR>> Directory. to remedy this, you should say <BR>> dir("..\\data\\*.*")<BR>> OR<BR>> dir(".\\data\\*.*")<BR><BR>These two are different. The two dots return the parent directory, one <BR>dot returns the current directory.<BR><BR>Irv</FONT></BLOCKQUOTE></DIV> <DIV><FONT style="BACKGROUND-COLOR: #ff8040" face="Times New Roman" color=#ffff00>I know. the one you use depends on what you need.</FONT></DIV></BODY></HTML>
6. Re: Dir Problem
- Posted by Robert Craig <rds at RapidEuphoria.com> May 21, 2004
- 551 views
Daniel Kluss wrote: > I get the following problem from dir in file.e on windows xp home > the program is a two liner > the folder "data" does not exist > Any comments whole be greatly appriciated > Daniel > ------------dir.exw > include file.e > > ? dir("data\\*.") > --------------------error screen > c:\euphoria\include\file.e:101 in function dir() > A machine-level exception occurred during execution of this statement OK, thanks for reporting it. I've managed to reproduce the bug on my machine. I'll fix it for the next release. In any case, perhaps you meant to say: ? dir("data\\*.*") That seems to work. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
7. Re: Dir Problem
- Posted by "Daniel Kluss" <xerox_irs at hotmail.com> May 23, 2004
- 625 views
I did "*." to get just things without extentions, it works with dir command= =20 in dos that way >From: Robert Craig <guest at RapidEuphoria.com> >Subject: Re: Dir Problem > > >posted by: Robert Craig <rds at RapidEuphoria.com> > >Daniel Kluss wrote: > > I get the following problem from dir in file.e on windows xp home > > the program is a two liner > > the folder "data" does not exist > > Any comments whole be greatly appriciated > > Daniel > > ------------dir.exw > > include file.e > > > > ? dir("data\\*.") > > --------------------error screen > > c:\euphoria\include\file.e:101 in function dir() > > A machine-level exception occurred during execution of this statement > >OK, thanks for reporting it. >I've managed to reproduce the bug on my machine. >I'll fix it for the next release. > >In any case, perhaps you meant to say: > > ? dir("data\\*.*") > >That seems to work. > >Regards, > Rob Craig > Rapid Deployment Software > http://www.RapidEuphoria.com > > > > =20 Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963