RE: Reading from Network Drive

new topic     » goto parent     » topic index » view thread      » older message » newer message

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    |
----------------------------------------------------

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu