- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsHi
I have my home LAN set up as a workgroup, and have a work laptop that is on a domain. I can access my shared drives/files on my LAN from the laptop by creating shortcuts with the UNC path. The first time I run the shortcut I'm given the logon popup and once I enter the username and password the program will start. I'd like this logon to be done automatically but I can't work out how to...
I don't mind an unecrypted password being used - I can create an account on my machine that has minimal priveledges and use that to logon so there'll be little security risk.
The program I'm trying to run is called loader.exe and this is what is in the shortcut path currently:
\\mypc\fad\loader.exe "password" /user:Danny /savecred
however, this still prompts me for a username and password. I've tried quite a few variations but I can't get it to work. My aim is to include this in a batch file like this:
********************
if exist \\mypc\fad\loader.exe GOTO start
:finish
Exit
:start
start \\mypc\fad\loader.exe "password" /user:Danny
GOTO finish
********************
so that the program will run whenever the computer is booted at home.
Any ideas?
thanks,
Danny
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: joe-quickPosted on 2005-02-24 at 16:59:27ID: 13398981
Throw a net use command into the script to do the login then start the app. Thats the only way I know of to pass login information.
You can type net user /? and get a list of command options.
Examples:
********************
if exist \\mypc\fad GOTO start
:finish
Exit
:start
net use \\mypc\fad /user:workgroup\Danny password|"password"
start \\mypc\fad\loader.exe
GOTO finish
********************
**OR**
********************
net use \\mypc\fad /user:workgroup\Danny password|"password"
if exist \\mypc\fad\loader.exe GOTO start
:finish
Exit
:start
start \\mypc\fad\loader.exe
GOTO finish
********************
I dont think I have it formated correctly but I think this is what you want.