[dba-Tech] DOS help

Gary Kjos garykjos at gmail.com
Fri Jan 7 07:29:30 CST 2005


Looks to me like you have the *.* on the to side instead of the from side.

The command is copy FromLocationPathAndFile ToLocationPath

Here's the help.....

Copies one or more files to another location.

COPY [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
     [+ source [/A | /B] [+ ...]] [destination [/A | /B]]

  source       Specifies the file or files to be copied.
  /A           Indicates an ASCII text file.
  /B           Indicates a binary file.
  destination  Specifies the directory and/or filename for the new file(s).
  /V           Verifies that new files are written correctly.
  /N           Uses short filename, if available, when copying a file with a
               non-8dot3 name.
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.
  /Z           Copies networked files in restartable mode.

The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.  Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.

To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).



On Fri, 7 Jan 2005 10:29:44 -0000, Jon Tydda <Jon.Tydda at alcontrol.co.uk> wrote:
> Hi all
> 
> got a small problem with a batch file I'm trying to write to automate an
> installation procedure. The problem is I haven't used DOS actively for about
> 10 years and can't remember a whole lot.
> 
> I'm trying to copy a file from one location to another, and the following
> line isn't working:
> 
> copy \\alcaislg1\d$\deploy\_AIS32.lnk
> <file://\\alcaislg1\d$\deploy\_AIS32.lnk>  C:\Documents and Settings\All
> Users\Desktop\*.*
> 
> Does anyone have any suggestions?
> 
> MTIA
> 
> Jon
> 
> The information in this e-mail is confidential and may also be legally
> privileged. The contents are intended for recipient only and are subject
> to the legal notice available on request from : webmaster at alcontrol.co.uk
> ALcontrol Laboratories is a trading division of ALcontrol UK Limited.
> Registered Office: Templeborough House, Mill Close, Rotherham, S60 1BZ.
> Registered in England and Wales No 4057291
> _______________________________________________
> dba-Tech mailing list
> dba-Tech at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-tech
> Website: http://www.databaseadvisors.com
> 


-- 
Gary Kjos
garykjos at gmail.com



More information about the dba-Tech mailing list