Sign in with
Sign up | Sign in
Your question

Batch File for Sharing

Last response: in Networking
Share
May 29, 2014 7:39:56 AM

So what I want to do is share a folder from one laptop and then access it through the other laptop connected through a LAN wire. The accessing should be done through a batch file in the sense that it should open the shared folder for me.
Since I don't have two laptops or a PC. What I did was wrote a batch file that does the following

md Hello
net share Helloshare=C:\Hello
net use X: \\192.1*.1*.1\Helloshare /User:"H* B* A*" (password) /PERSISTENT:YES
start X:

pause

Now do you think If I had accessed it through a different laptop it would have worked? Because it works fine for me accessing it on the same laptop but like I said I don't have two computers to verify that it will work in that case. If you see any problem then do tell me.

More about : batch file sharing

a c 207 D Laptop
May 29, 2014 1:20:13 PM

If it runs on your local laptop, as long as you setup the share correctly on the other system, it will work. In the user field, you need to put in the computer name the user account is located on before the user name like this: /user:p CName\UserName
m
0
l
!