Multi Copy - TC 6

English support forum

Moderators: white, Hacker, petermad, Stefan2

captjlddavis
Junior Member
Junior Member
Posts: 67
Joined: 2003-02-09, 23:38 UTC

Multi Copy - TC 6

Post by *captjlddavis »

Good day to all.

Running win98se - Mozilla 1.5f

When Icopy from the mail directory I can edit the target filename.
e.g.

Copy "Misc_Received" to

C:\temp\Old_Misc_Received

And it will copy correctly.

If I try and select two files in the source directory:
"drafts" and "important"

I get:

Copy (2) files to

C:\temp\*.* - (I Edit to read "C:\temp\old_*.*)

And the resulting target files are:

"old_rtant" and "old_ts"

I know I can Multi rename prior to copying.

I seem to recall this working in previous TC.

Any assistance appreciated.

regards:cptjlddavis
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

I can reproduce it, it replaces the characters and do not append.
But behaviour is the same as 5.51 ...
#5767 Personal license
captjlddavis
Junior Member
Junior Member
Posts: 67
Joined: 2003-02-09, 23:38 UTC

Post by *captjlddavis »

sqa_wizard
Thank you for your reply.

I could very well be wrong about previous ability to do this.

Perhaps I was not very clear, I do not want to append the file ( although that might be a good idea) I just wanted to copy existing source files to another directory under a different name:

"Drafts" to "old_Drafts"
"important" to "old_important"
etc.

Thank you again.

regards:captjlddavis
captjlddavis
Junior Member
Junior Member
Posts: 67
Joined: 2003-02-09, 23:38 UTC

Post by *captjlddavis »

Mark up another one for Christian:

The multi-copy/options/auto-rename accomplishes what I need -
Copies file to target directory and adds a [#] reference if file with the same name exists and does not overwrite.

Thanks again for a great program.

regards:captjlddavis
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Is there a way to set this up in the Start menu or a button to copy the TC ini files to a backup dir and not overwrite the ones already there? Like maybe wincmd-11-03-2003.ini or something like that? Or do I have to do this with a bat file?
captjlddavis
Junior Member
Junior Member
Posts: 67
Joined: 2003-02-09, 23:38 UTC

Post by *captjlddavis »

Boofo,

Perhaps someone with more expertize than I can help you.

I would think a .bat file would be the approach if TC can not do it.

I was refering to Multi-copy command. not individual file copy.

Sorry

regards:captjlddavis
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Thanks for pointing me in the right direction, anyway. ;)

Any DOS experts out there willing to help with a bat file for this? ;)
captjlddavis
Junior Member
Junior Member
Posts: 67
Joined: 2003-02-09, 23:38 UTC

Post by *captjlddavis »

Boofo,

I am sure that others will have a solution from within TC.
This simple batch file will copy the wincmd.ini file to a destination of your choice. You may have to edit the source to reflect the location of your .ini file
and edit the target directory.

Code: Select all

:: winbak.bat

::***********************************************************
::* Simple batch file to backup wincmd.ini to a directory of*
::* your choice. It will create a backup directory with     *
::* the name that you enter below and a sub-directory with  *
::* your system date.                                       *
::* Edit the:[set where="E:\winbak\"] line to reflect your  *
::* destination drive/directory.                            *
::*  +++++++++ NO GUARANTEE - IT WORKS FOR ME++++++++++     *
::*							    *	
::***********************************************************
cls

echo off
@echo %dbgt% off 
%3 echo %0 %%3 %%4 :: %1 %2> {a}.bat 
%3 dir {a}.bat | find "{A} " > {t}.bat
%3 {t} 
del {?}.bat
if [%4]==[] echo Date: %1 
if not [%4]==[] set %4=%1 
if not [%5]==[] set %5=%2

set where="e:\win_bak\"

set date = %1
set when=%1

xcopy "c:\WINDOWS\wincmd.ini" %where%\%when%\ /q /-y
:: The "/-y" string prompts for overwrite confermation.If you
:: remove it, it will overwrite
:: existing file.
This seems to work for me on Win98se - TC 6.0 - No guarantees on other OS. (no guarantee on Win98se either)

You can create a button to call the file.

Hope this helps.

regards:captjlddavis
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I run Win XP Pro SP1 and it didn't work for me. It made a file named {a}.bat (62 bytes) and a file named {t}.bat (0 bytes). :(
captjlddavis
Junior Member
Junior Member
Posts: 67
Joined: 2003-02-09, 23:38 UTC

Post by *captjlddavis »

Boofo,

Sorry 'bout that, I know nothing about XP (pro or otherwise) perhaps you can find the correct syntax someplace. But this should give you a starting point.

regards:captjlddavis
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I found the syntax at a couple of places but none that will do the date of anything in the filename. Is there an easy way to just take wincmd.ini and save it as wincmd-11-27-2003.ini for instance? That would be enough, I think.
captjlddavis
Junior Member
Junior Member
Posts: 67
Joined: 2003-02-09, 23:38 UTC

Post by *captjlddavis »

Boofo,

F5 and edit target name.

regards:captjlddavis
User avatar
Coco
Senior Member
Senior Member
Posts: 223
Joined: 2003-02-07, 13:35 UTC
Location: Belgium
Contact:

Post by *Coco »

echo set date=%%4
set bkpdir=c:\win_bak\
set where="%bkpdir%wincmd_%date%.ini"
xcopy "c:\program files\totalcmd\wincmd.ini" %where% /q /i /-y
Alain
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

Coco wrote:echo set date=%%4
set bkpdir=c:\win_bak\
set where="%bkpdir%wincmd_%date%.ini"
xcopy "c:\program files\totalcmd\wincmd.ini" %where% /q /i /-y
Ok, we're close. It makes the back directory, but also makes a directory called "C:\win_bak\ wincmd_Fri 11" and underneath that one: C:\win_bak\ wincmd_Fri 11\28\ and finally underneath that one: a file called "2003.ini". The date is messing it up somehow. :)
User avatar
Coco
Senior Member
Senior Member
Posts: 223
Joined: 2003-02-07, 13:35 UTC
Location: Belgium
Contact:

Post by *Coco »

Hi Boofo,

This is because your date setting in windows is set to something like MM/d/yyyy

if you change the / by - it should work.
Alain
Post Reply