1. EU dir command
- Posted by gwalters Aug 14, 2012
- 2421 views
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?
2. Re: EU dir command
- Posted by gwalters Aug 15, 2012
- 2326 views
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.
3. Re: EU dir command
- Posted by andi49 Aug 15, 2012
- 2296 views
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
4. Re: EU dir command
- Posted by gwalters Aug 16, 2012
- 2258 views
[quote andi49]
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
5. Re: EU dir command
- Posted by gwalters Aug 16, 2012
- 2269 views
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?
6. Re: EU dir command
- Posted by BRyan Aug 16, 2012
- 2249 views
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 ?
7. Re: EU dir command
- Posted by gwalters Aug 16, 2012
- 2217 views
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.
8. Re: EU dir command
- Posted by jimcbrown (admin) Aug 16, 2012
- 2228 views
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.
9. Re: EU dir command
- Posted by euphoric (admin) Aug 17, 2012
- 2157 views
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.
10. Re: EU dir command
- Posted by gwalters Aug 20, 2012
- 2011 views
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
11. Re: EU dir command
- Posted by gwalters Aug 20, 2012
- 2016 views
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.
12. Re: EU dir command
- Posted by mattlewis (admin) Aug 20, 2012
- 1985 views
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
13. Re: EU dir command
- Posted by gwalters Aug 23, 2012
- 1888 views
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.
14. Re: EU dir command
- Posted by mattlewis (admin) Aug 23, 2012
- 1912 views
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
15. Re: EU dir command
- Posted by gwalters Aug 23, 2012
- 1834 views
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.
16. Re: EU dir command
- Posted by gwalters Aug 23, 2012
- 1847 views
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?
17. Re: EU dir command
- Posted by SDPringle Aug 26, 2012
- 1775 views
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