1. EU dir command

I am using EU 2.4 and having trouble with the dir command. I want to dir a shared directory in my desktop server running windows 7. I think I have the shares correct because I can dir from a command window on my laptop.

dir
MyServerName\source works from a dos command window but the dir(path) where path is
MyServerName\source does not work. Any ideas?

new topic     » topic index » view message » categorize

2. Re: EU dir command

The EU dir command works with XP but does not work with Windows 7. A call to dir returns a "-1". I'm using EU 2.4 but I suspect that the current version 4.x does not work either when trying to list a shared directory on another computer on the network. Someone more knowledable than me should check it.

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

3. Re: EU dir command

gwalters said...

The EU dir command works with XP but does not work with Windows 7. A call to dir returns a "-1". I'm using EU 2.4 but I suspect that the current version 4.x does not work either when trying to list a shared directory on another computer on the network. Someone more knowledable than me should check it.

Hallo

I downloaded Eu2.4 and tried it on Win8 64Bit. Where M: is a share on the Internet (something like DropBox) not on the local Ethernet.

include file.e 
include get.e 
 
object result 
 
result = dir("M:\\") 
 
for i = 1 to length(result) do 
	puts(1,result[i][1]&"\n") 
end for 
 
result=wait_key() 

This works with Eu2.4 and Eu4.04

include std/filesys.e 
include std/console.e 
sequence result 
result = dir("M:\\") 
 
for i=1 to length(result)  do 
    puts(1,result[i][1]&"\n") 
end for 
any_key() 

This one is for Eu4.04 only

So, i can't reproduce the Error here. Maybe only with Win7? Maybe someone else can reproduce it?

Andreas

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

4. Re: EU dir command

[quote andi49]

gwalters said...

The EU dir command works with XP but does not work with Windows 7. A call to dir returns a "-1". I'm using EU 2.4 but I suspect that the current version 4.x does not work either when trying to list a shared directory on another computer on the network. Someone more knowledable than me should check it.

Hallo

I downloaded Eu2.4 and tried it on Win8 64Bit. Where M: is a share on the Internet (something like DropBox) not on the local Ethernet.

include file.e 
include get.e 
 
object result 
 
 
Yes, It works with previous versions of windows I have used (mainly XP) but it does not works with windows 7. Windows 7 pro does not allow shareing the root of C but does allow sharing directories. One can dir the shared directory from a cmd prompt but not from EXW. Can you try 4.x to a windows 7 computer? 
 
result 
new topic     » goto parent     » topic index » view message » categorize

5. Re: EU dir command

Yes, It works with previous versions of windows I have used (mainly XP) but it does not works with windows 7. Windows 7 pro does not allow shareing the root of C but does allow sharing directories. One can dir the shared directory from a cmd prompt but not from EXW. Can you try 4.x to a windows 7 computer?

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

6. Re: EU dir command

gwalters said...

Yes, It works with previous versions of windows I have used (mainly XP) but it does not works with windows 7. Windows 7 pro does not allow shareing the root of C but does allow sharing directories. One can dir the shared directory from a cmd prompt but not from EXW. Can you try 4.x to a windows 7 computer?

Have you tried using it with system_exec ?

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

7. Re: EU dir command

I thought about that but I haven't because this program does not use win32lib.ew. It is launched during startup of windows to check for any software changes on the server. If any changes are found they are copied to the workstation. It's a rather important function as I only have to update the server using remote desktop and all the other workstations update themselves. It has been working beautifully with XP but now it's dead and I have to send out CD's. So I've been looking for a solution.

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

8. Re: EU dir command

gwalters said...

I am using EU 2.4 and having trouble with the dir command. I want to dir a shared directory in my desktop server running windows 7. I think I have the shares correct because I can dir from a command window on my laptop.

dir
MyServerName\source works from a dos command window but the dir(path) where path is
MyServerName\source does not work. Any ideas?

Does

object x 
x = dir("\\\\MyServerName\\source\\*.*") 

work?

Also, you say that this program runs on startup ... does it run as a service somehow (e.g. via winserv) or does it run as the user who is logging in? Does the user log in with a password? Services and passwordless auto-logins generally have no network-anything permissions.

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

9. Re: EU dir command

dir() works for me on Windows 7 with Euphoria 4.0.4 when using a shared directory:

include std/filesys.e 
 
object x 
 
x = dir( "\\\\SEMP1\\SharedDocs\\" ) 
-- or x = dir( "\\\\SEMP1\\SharedDocs\\*.*" ) 
?x 

Printed result is a lot of file information.

If I attempt dir("\\\\SEMP1\\"), I get -1.

I think I would use the "*.*" path spec, as I believe the "\\\\SEMP1\\SharedDocs\\" path at first gave me a -1. After I used *.*, both paths then worked, IIRC... ICBC.

Confirmed that *.* isn't necessary for me.

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

10. Re: EU dir command

jimcbrown said...
gwalters said...

I am using EU 2.4 and having trouble with the dir command. I want to dir a shared directory in my desktop server running windows 7. I think I have the shares correct because I can dir from a command window on my laptop.

dir
MyServerName\source works from a dos command window but the dir(path) where path is
MyServerName\source does not work. Any ideas?

Does

object x 
x = dir("\\\\MyServerName\\source\\*.*") 

work?

Also, you say that this program runs on startup ... does it run as a service somehow (e.g. via winserv) or does it run as the user who is logging in? Does the user log in with a password? Services and passwordless auto-logins generally have no network-anything permissions.

Sorry, for the delay. I have been out of town with a customer whose computer died. It is just a program that should be launched sometime during boot up. It runs then quits if there are no software changes on the server it needs to download. It is not a service that persists. What I have been able to do is launch a windows 7 dir command that creates the file and I read that file and essentially have written my own version of the EU dir command. Seems to work

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

11. Re: EU dir command

One other question. EU 2.4 produces 32 bit exe files and all of the 316 programs I have run on Windows 7 correctly except two. The one I mentioned above that won't do the dir command and on one other. The interperted version runs with no problem but on the "compiled" one (bound and shrouded) the down arrow crashes it. Are the exe's from 4.x 32 bit or 64 bit? I'm thinking it might be time to upgrade.

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

12. Re: EU dir command

gwalters said...

One other question. EU 2.4 produces 32 bit exe files and all of the 316 programs I have run on Windows 7 correctly except two. The one I mentioned above that won't do the dir command and on one other. The interperted version runs with no problem but on the "compiled" one (bound and shrouded) the down arrow crashes it. Are the exe's from 4.x 32 bit or 64 bit? I'm thinking it might be time to upgrade.

Euphoria 4.0 is entirely 32-bits. There will be a 64-bit version of euphoria with 4.1. As 2.4 is a very ancient (and closed source) version, I don't think there's much that can be easily done.

Matt

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

13. Re: EU dir command

Well, looking to upgrade to 4.x, can 4.x and 2.4 coexist on the same computer w/o running into each other? I would like to begin converting my programs while at the same time support existing customers with 2.4.

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

14. Re: EU dir command

gwalters said...

Well, looking to upgrade to 4.x, can 4.x and 2.4 coexist on the same computer w/o running into each other? I would like to begin converting my programs while at the same time support existing customers with 2.4.

Yes. In fact, different versions of 4.x can coexist together. The key is to use your environment variables to configure your 2.4 environment, but eu.cfg files to configure your 4.x environments.

The eu.cfg system is a great improvement over EUDIR and EUINC. There are more configurable settings, you don't need to restart your shell before changes take effect, it makes it easy to have multiple versions installed and you can even override any of those settings on the command line.

Matt

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

15. Re: EU dir command

mattlewis said...
gwalters said...

Well, looking to upgrade to 4.x, can 4.x and 2.4 coexist on the same computer w/o running into each other? I would like to begin converting my programs while at the same time support existing customers with 2.4.

Yes. In fact, different versions of 4.x can coexist together. The key is to use your environment variables to configure your 2.4 environment, but eu.cfg files to configure your 4.x environments.

The eu.cfg system is a great improvement over EUDIR and EUINC. There are more configurable settings, you don't need to restart your shell before changes take effect, it makes it easy to have multiple versions installed and you can even override any of those settings on the command line.

Matt

Sounds pretty good. I'll give it a try.

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

16. Re: EU dir command

Well, I downloaded it and was afraid to install it. Looks like it is going to displace my current 2.4 EUPHORIA directory. Does this install put it there? If so it would break my current environmental vars or does it give me the option of placing it elsewhere?

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

17. Re: EU dir command

The Windows installer gives you an option to install in another place. If you do choose your %EUDIR% directory, it will move everything to a sub-directory and that would be bad for your current setup. You could install into C:\Program Files\Euphoria-4.0 for example.

Shawn Pringle

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

Search



Quick Links

User menu

Not signed in.

Misc Menu