Re: batch file syntax



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.




.



Relevant Pages

  • Re: Regedit change
    ... Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security ... Win 95/98/Me/XP Tweaks and Fixes ...
    (microsoft.public.windows.mediacenter)
  • Re: TELEPHONE THROUGH COMPUTER
    ... Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security ... Win 95/98/Me/XP Tweaks and Fixes ...
    (microsoft.public.windowsxp.basics)
  • Re: Uninstall WMC?
    ... Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart ... Win 95/98/Me/XP Tweaks and Fixes ...
    (microsoft.public.windows.mediacenter)
  • Re: New Windows Error...what does this annoying thing mean?
    ... Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart ... Win 95/98/Me/XP Tweaks and Fixes ...
    (microsoft.public.windows.mediacenter)
  • Re: Nero Patch
    ... > quality" to make it fit on a standard DVD doesn't look that good. ... > Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display ...
    (microsoft.public.windows.mediacenter)