Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change filename in script

0 views
Skip to first unread message

mkl...@bellsouth.net

unread,
Jun 23, 1999, 3:00:00 AM6/23/99
to
I need to change the name of the file to a unique name like yymmddmm
and move it to another directory. The following is the part of the
script as it currently stands. It simply moves the file to another
directory but does not change the name.

szMsg = OutDone
strcat szMsg $filename
rename $filespec szMsg

Outdone is a pathname like c:\printed\done\

Any help would be greatly appreciated.

Mike Klein

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

John Schultz

unread,
Jun 24, 1999, 3:00:00 AM6/24/99
to
In article <7kqn01$6ls$1...@nnrp1.deja.com>,

mkl...@bellsouth.net wrote:
> I need to change the name of the file to a unique name like yymmddmm
> and move it to another directory. The following is the part of the
> script as it currently stands. It simply moves the file to another
> directory but does not change the name.
>
> szMsg = OutDone
> strcat szMsg $filename
> rename $filespec szMsg
>
> Outdone is a pathname like c:\printed\done\

The copyfile command is what you want to use to actually move the
file. You could even use that command to eliminate the need for the
rename command.

0 new messages