> 3. where did you get MOVE from ?
Well DOS does have its uses:
Moves files and renames files and directories.
To move one or more files:
MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination
To rename a directory:
MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2
[drive:][path]filename1 Specifies the location and name of the file
or files you want to move.
destination Specifies the new location of the file.
Destination
can consist of a drive letter and colon, a
directory
name, or a combination. If you are moving only one
file, you can also include a filename if you want
to rename the file when you move it.
[drive:][path]dirname1 Specifies the directory you want to rename.
dirname2 Specifies the new name of the directory.
/Y Suppresses prompting to confirm creation of a directory
or overwriting of the destination.
/-Y Causes prompting to confirm creation of a directory or
overwriting of the destination.
The switch /Y may be present in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.
Regards,
Alastair.
----- Original Message -----
From: "Bernard Lis" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Wednesday, October 12, 2005 3:56 PM
Subject: [RBG7-L] - Re: copy problem
> Javier, Alastair,
> Thanks for your reply -- but --
> 1. I cannot change the name of the file, I get it from another company,
have
> to input data into rbase, add data and send it back to that company.
>
> 2. use of double quotes results in error, single quotes copies but still
> losses middle component.
>
> 3. where did you get MOVE from ?
>
> 4. I can copy the file correctly by doing it in windows explorer, but I
need
> to do it in a command file.
>
> 5. There must be a way - anyone know the secret?
>
> Bernie Lis
> ----- Original Message -----
> From: "Alastair Burr" <[EMAIL PROTECTED]>
> To: "RBG7-L Mailing List" <[email protected]>
> Sent: Wednesday, October 12, 2005 3:06 AM
> Subject: [RBG7-L] - Re: copy problem
>
>
> > Bernie,
> >
> > Try putting the file name in double quotes:
> >
> > COPY "xx.yy.zz" C:\Temp
> >
> > Also, don't forget _not_ to use a filename in the TO portion of the
> > command.
> >
> > If you do want to change name as well then use MOVE (with double
quotes):
> >
> > MOVE "xx.yy.zz" "C:\Temp\aa.bb.cc"
> >
> > In R:Base try setting variables to the source and destination:
> >
> > SET VAR vSouce TEXT = ' "xx.yy.zz" '
> > SET VAR vDest TEXT = ' "aa.bb.cc" '
> >
> > (I've put spaces between the quotes just to show the two types.)
> > then use whichever variable type - dotted or ampersand - works with
copy:
> >
> > COPY &vSouce &vDest
> >
> > Good luck & regards,
> > Alastair.
> >
> >
> > ----- Original Message -----
> > From: "Bernard Lis" <[EMAIL PROTECTED]>
> > To: "RBG7-L Mailing List" <[email protected]>
> > Sent: Wednesday, October 12, 2005 2:42 AM
> > Subject: [RBG7-L] - copy problem
> >
> >
> >> Try this --
> >> Create a file called xx.yy.zz put some dummy info into it.
> >>
> >> then copy xx.yy.zz to some other folder
> >> I got xx.zz the yy component disappeared
> >>
> >> Are we not able to copy a 3 component file in a command file?
> >>
> >> Bernie Lis
> >>
> >
> > --- RBG7-L
> > ================================================
> > TO POST A MESSAGE TO ALL MEMBERS:
> > Send a plain text email to [email protected]
> >
> > (Don't use any of these words as your Subject:
> > INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
> > REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
> > ================================================
> > TO SEE MESSAGE POSTING GUIDELINES:
> > Send a plain text email to [email protected]
> > In the message SUBJECT, put just one word: INTRO
> > ================================================
> > TO UNSUBSCRIBE:
> > Send a plain text email to [email protected]
> > In the message SUBJECT, put just one word: UNSUBSCRIBE
> > ================================================
> > TO SEARCH ARCHIVES:
> > Send a plain text email to [email protected]
> > In the message SUBJECT, put just one word: SEARCH-n
> > (where n is the number of days). In the message body,
> > place any
> > text to search for.
> > ================================================
> >
> >
>