Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Shared folder - bat file

Jul 19, 2013 6:16AM PDT

Hi guys!
I have a External HDD connected to my router on network. I need to make a bat file where it logon into my shared folder on HDD.

My location folder is:
\\DELT-malek\Kvitteringer - will have k:\
\\DELT-malek\Ibo - will have s:\

I need to set username and password too... so I hope somebody can help me with this! Happy

Discussion is locked

- Collapse -
Clarification Request
Small world.
Jul 19, 2013 6:27AM PDT

I have a Netgear WNDR3800 that has such and can use the NET USE command to map this to a drive letter.

But what is this logon? It's not exactly a logon but is indeed a name and password.
As the NET USE command is widely documented, I'll stop here.
Bob

- Collapse -
Shared folder - bat file
Jul 19, 2013 8:01AM PDT

I need to connect my shared folders on my computer. When I connect to to my shared folder manually, then it require username and password.

When I make connection to a shared folder with a drive letter, it won't work next time I startup computer until I do it manually.

So I hope a batch file on startup-folder will resolve this problem Happy

- Collapse -
As NET USE is well documented.
Jul 19, 2013 8:18AM PDT

I didn't write the batch file for you. But are you saying the map isn't there after a proper reboot?

Why I used the word proper was an incident last year where the client was griping about this and we went over and they demonstrated it. So they made then map then flipped the power off on the power bar.

Sure enough it didn't say the mapped drive.
http://www.sevenforums.com/network-sharing/51085-mapped-drive-not-connecting-startup.html covers more.
Bob

- Collapse -
Answer
PS. Just a tip.
Jul 19, 2013 6:28AM PDT

For shares, folder names and well most things Windows, avoid non-alphanumeric characters and think old school 8.3 naming.