LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Samba and winXP (simple question) (https://www.linuxquestions.org/questions/linux-general-1/samba-and-winxp-simple-question-28377/)

stewe151 08-20-2002 04:31 PM

Samba and winXP (simple question)
 
I have a question. In order to network linux and microsoft, I use samba. In windows I use a dos script, in a .bat file, that makes a network drive in windows, but I have to type in the username and pass after executing it. I want to know if there is a way to encode the username and pass in the .bat file so it automatically fills in the username and pass. the script in it looks like this:



net use j: \\<ipddress>\root /persistent:no





Thanks!

stewe151 08-20-2002 06:47 PM

Come on, someone has to know how to do this!

stewe151 08-21-2002 06:03 AM

anyone?

cydd420 11-04-2002 06:57 PM

try this
net use DRIVE: \\hostname\share /user:username password /persistent:no

there are many more options if you do a
net use /?


All times are GMT -5. The time now is 10:54 PM.