Re: Entering a username into a Batch file.
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Thu, 14 Sep 2006 20:49:48 +1000
"DaveO" <DaveO@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EC9DBA03-AE53-46BF-971E-CDAF4134A8D8@xxxxxxxxxxxxxxxx
What I'd like to do is move some files from a network location locallyin
over-night so that they're available to other programs.
The files I'm trying to move are simple .txt files, however on the network
location I need to enter a username and password.
How would I be able to send these 2 pieces of info (username / password)
a batch file so I can access the location?
TIA.
@echo off
set /p user=Please enter your logon name:
if "%user%"=="" goto Finish
set /p pw=. . . and your password:
if "%pw%"=="" goto Finish
(put your code here)
goto :eof
:Finish
echo.
echo Blank user name or password entered.
echo This program will now terminate.
echo Press the Space bar to close this window.
pause > nul
.
- Prev by Date: Unknown hard error happens after booting from cd for reinstallation
- Next by Date: Re: East Asian language support on XP sp2 without OEM istall disks??
- Previous by thread: Unknown hard error happens after booting from cd for reinstallation
- Next by thread: Re: Entering a username into a Batch file.
- Index(es):
Relevant Pages
|