Computing.Net > Forums > Windows XP > help writing a bat file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

help writing a bat file

Reply to Message Icon

Name: grafter63
Date: October 17, 2008 at 10:23:12 Pacific
OS: XP
CPU/Ram: intel 2gb
Product: dell
Comment:

I have some remote users who connect to the domain using a vpn tunnel. Once connected they are using a bat file to copy a spreadsheet to a server. The problem I am having is that their credentials for the domain are not nessesarily the one they are using to log onto their machine. Is there a way to prompt for username and password in a bat file? Here is what I have so far:
Copy C:\file\*.xls \\server.mydomain.com\Sales\Sales\file\ /y
pause

(I changed the real file names, server and domain name to generic names)

This bat works fine if it is run in the office, but not if they are a remote user.

Any help would be appreciated




Sponsored Link
Ads by Google

Response Number 1
Name: jefro
Date: October 17, 2008 at 14:21:33 Pacific
Reply:

Log on remote across the vpn. See if you can access the share. Vpn may not support cifs, may have to open ports.

http://www.robvanderwoude.com/useri...

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: help writing a bat file

Deleting files using a .bat www.computing.net/answers/windows-xp/deleting-files-using-a-bat/168232.html

close explorer.exe with a*.bat file www.computing.net/answers/windows-xp/close-explorerexe-with-abat-file/146504.html

need help with a batch file www.computing.net/answers/windows-xp/need-help-with-a-batch-file/142147.html