Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Powerbasic > NET.EXE and the...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 168 of 283
Post > Topic >>

NET.EXE and the SHELL command.

by "Dankert" <sfdfdf@[EMAIL PROTECTED] > Dec 2, 2005 at 09:50 AM

Hi,

I have a problem hopefully someone could help with.

When I run "NET USE Z: \\Server\Share"  from the commandline and then run
a 
PB 3.5  program under Windows XP like:

OPEN "Z:\Test.txt" FOR OUTPUT AS #1
PRINT #1,"Hello"
CLOSE #1

everything works as expected, but if I instead run the NET command, using 
the same syntax as above, from a SHELL statement like

SHELL "NET USE Z: \\Server\Share"
OPEN "Z:\Test.txt".......

the OPEN statement causes BASIC error 76.

When I use "Windows Explorer" to see if the drive has been mapped it 
hasn't.(If SHELLing)
Why cant't I map the network drive from a SHELL statement?

Thanks for your time!
 




 4 Posts in Topic:
NET.EXE and the SHELL command.
"Dankert" <s  2005-12-02 09:50:08 
Re: NET.EXE and the SHELL command.
"Ian Spencer" &  2005-12-02 12:55:56 
Re: NET.EXE and the SHELL command.
Peter Manders <news@[E  2005-12-02 14:02:54 
Re: NET.EXE and the SHELL command.
"Dankert" <s  2005-12-02 20:06:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 8:33:30 CDT 2008.