Re: batch file syntax
- From: "Doug Knox MS-MVP" <dknox@xxxxxxxx>
- Date: Sat, 19 Aug 2006 15:30:49 -0400
Use XCOPY instead of COPY. XCOPY /? will give you all the command line options.
--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"C.M.G." <cmg@xxxxxxxxxxxxxxxx> wrote in message news:em3mLC8wGHA.4140@xxxxxxxxxxxxxxxxxxxxxxx
.
Doug,
That works great, thanks a lot.
Is there an expression that would also copy all the folders, and not just
the files, contained within the source folder?
Thanks again,
Clem.
"Doug Knox MS-MVP" <dknox@xxxxxxxx> wrote in message
news:uiJMHRxwGHA.1484@xxxxxxxxxxxxxxxxxxxxxxx
Copy "C:\folder1\*.*" "\\<computername>\<sharename>\<foldername>"
--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart
Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"C.M.G." <cmg@xxxxxxxxxxxxxxxx> wrote in message
news:OhtMSRwwGHA.5064@xxxxxxxxxxxxxxxxxxxxxxx
The following batch file copies files from one directory to another, on
the
same HD:
copy "C:\folder1\*.*" "C:\folder2"
My question is: what is the proper syntax to send the files to a directory
on a different computer that is networked with the source computer?
Thanks for your help.
Clem.
- Follow-Ups:
- Re: batch file syntax
- From: C.M.G.
- Re: batch file syntax
- References:
- batch file syntax
- From: C.M.G.
- Re: batch file syntax
- From: Doug Knox MS-MVP
- Re: batch file syntax
- From: C.M.G.
- batch file syntax
- Prev by Date: Re: batch file syntax
- Next by Date: Re: batch file syntax
- Previous by thread: Re: batch file syntax
- Next by thread: Re: batch file syntax
- Index(es):
Relevant Pages
|