How do I copy a file in LID?

 2 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
mikeP
Veteran Member
Posts: 151
Veteran Member

I would like to copy a file in LID. 

HELP COPY | LASHOW reveals the syntax is the same as Windows:

Standard Input                                            Line:1        Pct:0%

Copies one or more files to another location.

COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B]

     [+ source [/A | /B] [+ ...]] [destination [/A | /B]]

 

Yet a simple instance of the command doesn't work.  I know I have rights to this file, because I put it there via a Windows file share.  Trying just the file names, then fully qualified paths, the command (or perhaps the input file) isn't found:

d:\lawprod\law\eugene\vbs> copy histcopy.wsf test.txt

copy histcopy.wsf test.txt: Not Found

d:\lawprod\law\eugene\vbs> ≤eugene\vbs\histcopy.wsf d:\lawprod\law\eugene\vbs\≥

copy d:\lawprod\law\eugene\vbs\histcopy.wsf d:\lawprod\law\eugene\vbs\test.txt:

Not Found

There's no info on file copies in System Utilities Reference Guide, LID Getting Started, etc.

So how does one copy a file in LID?  This should be so simple.

 

 

 

 

 

 

 

 

 

EricS
Veteran Member
Posts: 80
Veteran Member
Mike, I had a similar problem with simple commands not running in LID. The problem turned out to be that the LAW_UU_ROOT system variable did not match where LUU was actually installed. Try checking the system property against where LUU is installed. That may fix it.
mikeP
Veteran Member
Posts: 151
Veteran Member

Click... [Sound of penny dropping].  

Thanks Eric, your response made me realize I have to use a Unix cp command to copy a file.

Yet at the same LID command line where I use the Unix cp command, the HELP command shows the Windows COPY command syntax.

Any guidelines on when to use Windows vs. Unix syntax?  E.g., I have Windows command files that run from tokens that use the COPY command.