| View previous topic :: View next topic |
| Author |
Message |
captjlddavis Junior Member

Joined: 09 Feb 2003 Posts: 65
|
Posted: Thu Nov 27, 2003 1:50 pm Post subject: Multi Copy - TC 6 |
|
|
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 |
|
| Back to top |
|
 |
sqa_wizard Power Member


Joined: 06 Feb 2003 Posts: 2619 Location: Germany
|
Posted: Thu Nov 27, 2003 2:18 pm Post subject: |
|
|
I can reproduce it, it replaces the characters and do not append.
But behaviour is the same as 5.51 ... _________________ #5767 Personal license |
|
| Back to top |
|
 |
captjlddavis Junior Member

Joined: 09 Feb 2003 Posts: 65
|
Posted: Thu Nov 27, 2003 2:51 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
captjlddavis Junior Member

Joined: 09 Feb 2003 Posts: 65
|
Posted: Thu Nov 27, 2003 7:42 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Boofo Power Member


Joined: 10 Feb 2003 Posts: 1431 Location: Des Moines, IA (USA)
|
Posted: Thu Nov 27, 2003 8:41 pm Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
captjlddavis Junior Member

Joined: 09 Feb 2003 Posts: 65
|
Posted: Thu Nov 27, 2003 8:57 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Boofo Power Member


Joined: 10 Feb 2003 Posts: 1431 Location: Des Moines, IA (USA)
|
Posted: Thu Nov 27, 2003 9:03 pm Post subject: |
|
|
Thanks for pointing me in the right direction, anyway.
Any DOS experts out there willing to help with a bat file for this?  |
|
| Back to top |
|
 |
captjlddavis Junior Member

Joined: 09 Feb 2003 Posts: 65
|
Posted: Fri Nov 28, 2003 12:35 am Post subject: |
|
|
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: | :: 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 |
|
| Back to top |
|
 |
Boofo Power Member


Joined: 10 Feb 2003 Posts: 1431 Location: Des Moines, IA (USA)
|
Posted: Fri Nov 28, 2003 12:49 am Post subject: |
|
|
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).  |
|
| Back to top |
|
 |
captjlddavis Junior Member

Joined: 09 Feb 2003 Posts: 65
|
Posted: Fri Nov 28, 2003 12:57 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Boofo Power Member


Joined: 10 Feb 2003 Posts: 1431 Location: Des Moines, IA (USA)
|
Posted: Fri Nov 28, 2003 1:09 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
captjlddavis Junior Member

Joined: 09 Feb 2003 Posts: 65
|
Posted: Fri Nov 28, 2003 1:19 am Post subject: |
|
|
Boofo,
F5 and edit target name.
regards:captjlddavis |
|
| Back to top |
|
 |
Coco Senior Member


Joined: 07 Feb 2003 Posts: 223 Location: Belgium
|
Posted: Fri Nov 28, 2003 2:01 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
Boofo Power Member


Joined: 10 Feb 2003 Posts: 1431 Location: Des Moines, IA (USA)
|
Posted: Fri Nov 28, 2003 2:42 am Post subject: |
|
|
| 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.  |
|
| Back to top |
|
 |
Coco Senior Member


Joined: 07 Feb 2003 Posts: 223 Location: Belgium
|
Posted: Fri Nov 28, 2003 3:25 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|