Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Answer in Batch -NET USE  (Read 5067 times)

0 Members and 1 Guest are viewing this topic.

m

  • Guest
Answer in Batch -NET USE
« on: August 11, 2004, 04:28:00 PM »
Any ideas on sending a blank answer for a username in a batch file? Is there a command to send the answer as "enter"?

Windows XP.

Here is a line from the batch file:
net use F: \\Telserv\H  \username:testuser  \password:(There is no password)

johnwill

  • Guest
Re: Answer in Batch -NET USE
« Reply #1 on: August 12, 2004, 08:55:07 AM »
How about :

echo.|net use F: \\Telserv\H  \username:testuser  \password

M

  • Guest
Re: Answer in Batch -NET USE
« Reply #2 on: August 12, 2004, 08:17:07 PM »
Thanks for trying, but it still gives me the syntax help screen when I run it. I need to somehow fill that password field with "enter." It works manually so there must be a way to do it with code.

M

  • Guest
Re: Answer in Batch -NET USE
« Reply #3 on: August 12, 2004, 08:47:12 PM »
Okay thanks John. You led me to it. Here it is...
net use G: \\Telserv\D  
testuser
Echo.    

Basically answering the prompts rather than putting them in with answers. Appreciate your help.


johnwill

  • Guest
Re: Answer in Batch -NET USE
« Reply #4 on: August 13, 2004, 07:32:59 AM »
We'll count this as a win.  ;D