views:

136

answers:

1

I want to move my current path to some network UNC password protected path. I need to do it via batch script. How do I move to that UNC location and enter its password via a script? I thought doing it like pushd \\my\path but how do I enter the username and password?

+1  A: 

Use cmdkey or net use

Shay Erlichmen