Re: txt file as parameter list?
- From: "asdf" <asdf@xxxxxxxx>
- Date: Sat, 26 May 2007 02:16:05 -0400
"for /f %%F "
To honor Bill Stewarts "coming out",
this would apply to NT+ only.
"Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx> wrote in message news:%23yZYEdynHHA.2584@xxxxxxxxxxxxxxxxxxxxxxx
"William Stokes" <will@xxxxxxxxxxxxx> wrote in message news:%236nzhVsnHHA.4772@xxxxxxxxxxxxxxxxxxxxxxxHello,
I have a small script for copying files:
xcopy "Z:\Notes Clients\6.5.4 FI W32Intel\Lotus Notes 6.5.4 fi.msi" \\testpc01\c$\WINDOWS\Installer /Y /Z /V
I would like to use a dest.txt file as destination PC list. Like:
testpc01
testpc02
testpc03
How can I read this dest.txt and pass the computername to xcopy command?
This could certainlly be done using WSH, but a very simple batch solution exists that looks a bit like this (untested) script:
for /f %%F in (test.txt) do xcopy "Z:\Notes Clients\6.5.4 FI W32Intel\Lotus Notes 6.5.4 fi.msi" \\%%F\c$\WINDOWS\Installer /Y /Z /V
This command will simply display a series of xcopy commands. If they seem OK, you could then edit out the "ECHO/" before running the script again.
/Al
.
- Follow-Ups:
- Re: txt file as parameter list?
- From: William Stokes
- Re: txt file as parameter list?
- References:
- txt file as parameter list?
- From: William Stokes
- Re: txt file as parameter list?
- From: Al Dunbar
- txt file as parameter list?
- Prev by Date: Re: How to run a vbs script in winpe enviroment
- Next by Date: Re: adding dfs target to the Dfs root
- Previous by thread: Re: txt file as parameter list?
- Next by thread: Re: txt file as parameter list?
- Index(es):
Relevant Pages
|