1. RE: Reading from Network Drive
- Posted by Brian Broker <bkb at cnw.com> Aug 17, 2004
- 512 views
cklester wrote: > > Guillermo Bonvehi wrote: > > > > I usually connected it as a shared drive, i don't know how it's called > > on English, > > but is basically assing the shared folder a driver letter like Z:, then > > access the > > files like open("Z:\\lala.txt","r") > > I think you're talking about drive mapping, and I didn't want to have to > do that if I didn't have to do that. :) Your choices are to either map the drive ("net use z: \\WinXP1\templates") to use Euphoria's dir(). You could do this programatically using system() (and later delete the mapping with "net use z: \delete"). Or you could use Euman's "alternative to dir()": dir2("\\\\WinXP1\\templates"). -- Brian
2. RE: Reading from Network Drive
- Posted by cklester <cklester at yahoo.com> Aug 18, 2004
- 495 views
Brian Broker wrote: > cklester wrote: > > Guillermo Bonvehi wrote: > > > I usually connected it as a shared drive, i don't know how it's called > > > on English, > > > but is basically assing the shared folder a driver letter like Z:, then > > > access the > > > files like open("Z:\\lala.txt","r") > > I think you're talking about drive mapping, and I didn't want to have to > > do that if I didn't have to do that. :) > Your choices are to either map the drive ("net use z: > \\WinXP1\templates") to use Euphoria's dir(). You could do this > programatically using system() (and later delete the mapping with "net > use z: \delete"). Or you could use Euman's "alternative to dir()": > dir2("\\\\WinXP1\\templates"). Brian, thanks for those suggestions! I'll give 'em a shot tomorrow when I get back to work. -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
3. RE: Reading from Network Drive
- Posted by Rolf Schr�der <Rolf.Schroeder at desy.de> Aug 18, 2004
- 499 views
Carl, you don't have to use drive mappings! Look at the following example: --------------------------------------------- include file.e -- dir() object x x = dir("\\\\REMOTE_PC\\C$\\DIRNAME") --------------------------------------------- will return the DIRNAME-content if the remote machine, drive, and dir is existing and permitted. Have a nice day, Rolf ---------------------------------------------------- | Dr.Rolf Schr�der | E B | | DESY MST-1 | C | | Notkestra�e 85 | D | | D-22603 Hamburg | A | | Earth |-------------------------------| | Solar System | Phone : +49-40-8998-2628 | | Milky Way | Fax : +49-40-8994-2628 | | Local Group | mailto:Rolf.Schroeder at DESY.de | | Known Universe | http://adweb.desy.de/~rolf | ----------------------------------------------------
4. RE: Reading from Network Drive
- Posted by OtterDad <otter at full-moon.com> Aug 18, 2004
- 527 views
could be an XP thing - i use NT and i do network dirs() literally hundreds of times each day - make sure you quadruple backslash the system name, i.e. \\<name-goes-here> needs to read a=dir("\\\\<name-goes-here>\\") Yours, OtterDad Don't sweat it -- it's not real life. It's only ones and zeroes. Gene Spafford
5. RE: Reading from Network Drive
- Posted by Brian Broker <bkb at cnw.com> Aug 18, 2004
- 495 views
OtterDad wrote: > > could be an XP thing - i use NT and i do network dirs() literally > hundreds of times each day - make sure you quadruple backslash the > system name, i.e. \\<name-goes-here> needs to read > a=dir("\\\\<name-goes-here>\\") > > Yours, OtterDad > Must be an XP thing then because I get -1 whether I do dir("\\\\server\\share") or dir("\\\\server\\share\\") but "dir \\server\share" at cmd prompt works just fine... -- Brian
6. RE: Reading from Network Drive
- Posted by Rolf Schröder <Rolf.Schroeder at desy.de> Aug 19, 2004
- 489 views
Brian Broker wrote: > > OtterDad wrote: > > > > could be an XP thing - i use NT and i do network dirs() literally > > hundreds of times each day - make sure you quadruple backslash the > > system name, i.e. \\<name-goes-here> needs to read > > a=dir("\\\\<name-goes-here>\\") > > > > Yours, OtterDad > > > > Must be an XP thing then because I get -1 whether I do > dir("\\\\server\\share") or dir("\\\\server\\share\\") > > but "dir \\server\share" at cmd prompt works just fine... > It's not an XP thing! By the way: does it run under EXW (and not under EX)? All my progs are binded with 'bindw' and are running under XP. Have a nice day, Rolf -- ---------------------------------------------------- | Dr.Rolf Schröder | E B | | DESY MST-1 | C | | Notkestraße 85 | D | | D-22603 Hamburg | A | | Earth |-------------------------------| | Solar System | Phone : +49-40-8998-2628 | | Milky Way | Fax : +49-40-8994-2628 | | Local Group | mailto:Rolf.Schroeder at DESY.de | | Known Universe | http://adweb.desy.de/~rolf | ----------------------------------------------------
7. RE: Reading from Network Drive
- Posted by Brian Broker <bkb at cnw.com> Aug 19, 2004
- 490 views
Rolf Schr=F6der wrote: >=20 > Brian Broker wrote: > >=20 > > OtterDad wrote: > > >=20 > > > could be an XP thing - i use NT and i do network dirs() literally=20 > > > hundreds of times each day - make sure you quadruple backslash the= =20 > > > system name, i.e. \\<name-goes-here> needs to read=20 > > > a=dir("\\\\<name-goes-here>\\") > > >=20 > > > Yours, OtterDad > > >=20 > >=20 > > Must be an XP thing then because I get -1 whether I do=20 > > dir("\\\\server\\share") or dir("\\\\server\\share\\") > >=20 > > but "dir \\server\share" at cmd prompt works just fine... > >=20 >=20 > It's not an XP thing! By the way: does it run under EXW (and > not under EX)? > All my progs are binded with 'bindw' and are running under XP. >=20 > Have a nice day, Rolf >=20 > -- Interesting... here's my test program:
include file.e ? dir( "\\\\server\\share\\" )
I tested it with exwc.exe and ex.exe and both returned -1. And it's not= =20 a permissions thing because I'm Admin on the server in question and OS=20 'dir' works fine... So what am I doing wrong? -- Brian
8. RE: Reading from Network Drive
- Posted by cklester <cklester at yahoo.com> Aug 19, 2004
- 847 views
- Last edited Aug 20, 2004
Brian Broker wrote: > OtterDad wrote: > > could be an XP thing - i use NT and i do network dirs() literally > > hundreds of times each day - make sure you quadruple backslash the > > system name, i.e. \\<name-goes-here> needs to read > > a=dir("\\\\<name-goes-here>\\") > > Must be an XP thing then because I get -1 whether I do > dir("\\\\server\\share") or dir("\\\\server\\share\\") > > but "dir \\server\share" at cmd prompt works just fine... I'm on a Win 2000 box and can't get a dir("\\winxp1\templates") from a WinXP box using Euphoria. However, dir at the command prompt works fine. So what's up with that?! :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
9. RE: Reading from Network Drive
- Posted by Brian Broker <bkb at cnw.com> Aug 19, 2004
- 499 views
- Last edited Aug 20, 2004
cklester wrote: > > Brian Broker wrote: > > OtterDad wrote: > > > could be an XP thing - i use NT and i do network dirs() literally > > > hundreds of times each day - make sure you quadruple backslash the > > > system name, i.e. \\<name-goes-here> needs to read > > > a=dir("\\\\<name-goes-here>\\") > > > > Must be an XP thing then because I get -1 whether I do > > dir("\\\\server\\share") or dir("\\\\server\\share\\") > > > > but "dir \\server\share" at cmd prompt works just fine... > > I'm on a Win 2000 box and can't get a dir("\\winxp1\templates") from > a WinXP box using Euphoria. However, dir at the command prompt works > fine. > > So what's up with that?! :) > Are you asking me? I have no idea since I can't get it to work either. However, in your case I'd at least try: dir("\\\\winxp1\\templates") or dir("\\\\winxp1\\templates\\") before deciding it doesn't work. -- Brian
10. RE: Reading from Network Drive
- Posted by cklester <cklester at yahoo.com> Aug 19, 2004
- 483 views
- Last edited Aug 20, 2004
Brian Broker wrote: > cklester wrote: > > I'm on a Win 2000 box and can't get a dir("\\winxp1\templates") from > > a WinXP box using Euphoria. However, dir at the command prompt works > > fine. > > > Are you asking me? Anybody who is willing and able. Or just willing. > I have no idea since I can't get it to work either. I know. :) > However, in your case I'd at least try: > dir("\\\\winxp1\\templates") or dir("\\\\winxp1\\templates\\") before > deciding it doesn't work. Sorry! That was my typo up there. I am using four slashes. :/ -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
11. RE: Reading from Network Drive
- Posted by Rolf Schröder <Rolf.Schroeder at desy.de> Aug 20, 2004
- 516 views
Hi Brian, the following example code works under EXW.EXE on my NT-PC: -------------------------------------------------------- include file.e include get.e integer k ? dir("\\\\adhome.win.desy.de\\rolf$\\www\\robots.txt") k = wait_key() -------------------------------------------------------- Check carefully the path!! Is is realy existing? Rolf Brian Broker wrote: > > Rolf Schr=F6der wrote: > >=20 > > Brian Broker wrote: > > >=20 > > > OtterDad wrote: > > > >=20 > > > > could be an XP thing - i use NT and i do network dirs() literally=20 > > > > hundreds of times each day - make sure you quadruple backslash the= > =20 > > > > system name, i.e. \\<name-goes-here> needs to read=20 > > > > a=dir("\\\\<name-goes-here>\\") > > > >=20 > > > > Yours, OtterDad > > > >=20 > > >=20 > > > Must be an XP thing then because I get -1 whether I do=20 > > > dir("\\\\server\\share") or dir("\\\\server\\share\\") > > >=20 > > > but "dir \\server\share" at cmd prompt works just fine... > > >=20 > >=20 > > It's not an XP thing! By the way: does it run under EXW (and > > not under EX)? > > All my progs are binded with 'bindw' and are running under XP. > >=20 > > Have a nice day, Rolf > >=20 > > -- > > Interesting... here's my test program: > }}} <eucode> > include file.e > > ? dir( "\\\\server\\share\\" ) > </eucode> {{{ > > I tested it with exwc.exe and ex.exe and both returned -1. And it's not= > =20 > a permissions thing because I'm Admin on the server in question and OS=20 > 'dir' works fine... > > So what am I doing wrong? > > -- Brian > > ---------------------------------------------------- | Dr.Rolf Schröder | E B | | DESY MST-1 | C | | Notkestraße 85 | D | | D-22603 Hamburg | A | | Earth |-------------------------------| | Solar System | Phone : +49-40-8998-2628 | | Milky Way | Fax : +49-40-8994-2628 | | Local Group | mailto:Rolf.Schroeder at DESY.de | | Known Universe | http://adweb.desy.de/~rolf | ----------------------------------------------------
12. RE: Reading from Network Drive
- Posted by Rolf Schröder <Rolf.Schroeder at desy.de> Aug 20, 2004
- 488 views
May be it's of interest to state: In case you want to get dir-information from the root, I have to write "*.*", otherwise dir() will return -1. Look at the following example, the root-dir from drive D$ on PC 'MSTBBMEDIA', member of domain 'desy.de': ------------------------------------------ include file.e include get.e integer k ? dir("\\\\MSTBBMEDIA.desy.de\\D$\\*.*") k = wait_key() ------------------------------------------ Have a nice day, Rolf ---------------------------------------------------- | Dr.Rolf Schröder | E B | | DESY MST-1 | C | | Notkestraße 85 | D | | D-22603 Hamburg | A | | Earth |-------------------------------| | Solar System | Phone : +49-40-8998-2628 | | Milky Way | Fax : +49-40-8994-2628 | | Local Group | mailto:Rolf.Schroeder at DESY.de | | Known Universe | http://adweb.desy.de/~rolf | ----------------------------------------------------
13. RE: Reading from Network Drive
- Posted by Brian Broker <bkb at cnw.com> Aug 20, 2004
- 483 views
Rolf Schr=F6der wrote: >=20 > May be it's of interest to state: In case you want to get > dir-information from the root, I have to write "*.*", otherwise dir() > will return -1. Look at the following example, the root-dir from drive= =20 > D$ > on PC 'MSTBBMEDIA', member of domain 'desy.de': >=20 That's it! In fact, just adding a '*' does it... include file.e ? dir( "\\\\server\\share\\*" ) Thanks Rolf, -- Brian
14. RE: Reading from Network Drive
- Posted by cklester <cklester at yahoo.com> Aug 20, 2004
- 510 views
Brian Broker wrote: > > That's it! In fact, just adding a '*' does it... > > include file.e > ? dir( "\\\\server\\share\\*" ) Works for me, too! Thanks, y'all! :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/