Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multi Copy - TC 6
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
captjlddavis
Junior Member
Junior Member


Joined: 09 Feb 2003
Posts: 65

PostPosted: Thu Nov 27, 2003 1:50 pm    Post subject: Multi Copy - TC 6 Reply with quote

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
View user's profile Send private message
sqa_wizard
Power Member
Power Member


Joined: 06 Feb 2003
Posts: 2810
Location: Germany

PostPosted: Thu Nov 27, 2003 2:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
captjlddavis
Junior Member
Junior Member


Joined: 09 Feb 2003
Posts: 65

PostPosted: Thu Nov 27, 2003 2:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
captjlddavis
Junior Member
Junior Member


Joined: 09 Feb 2003
Posts: 65

PostPosted: Thu Nov 27, 2003 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
Boofo
Power Member
Power Member


Joined: 10 Feb 2003
Posts: 1431
Location: Des Moines, IA (USA)

PostPosted: Thu Nov 27, 2003 8:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
captjlddavis
Junior Member
Junior Member


Joined: 09 Feb 2003
Posts: 65

PostPosted: Thu Nov 27, 2003 8:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Boofo
Power Member
Power Member


Joined: 10 Feb 2003
Posts: 1431
Location: Des Moines, IA (USA)

PostPosted: Thu Nov 27, 2003 9:03 pm    Post subject: Reply with quote

Thanks for pointing me in the right direction, anyway. Wink

Any DOS experts out there willing to help with a bat file for this? Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
captjlddavis
Junior Member
Junior Member


Joined: 09 Feb 2003
Posts: 65

PostPosted: Fri Nov 28, 2003 12:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Boofo
Power Member
Power Member


Joined: 10 Feb 2003
Posts: 1431
Location: Des Moines, IA (USA)

PostPosted: Fri Nov 28, 2003 12:49 am    Post subject: Reply with quote

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). Sad
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
captjlddavis
Junior Member
Junior Member


Joined: 09 Feb 2003
Posts: 65

PostPosted: Fri Nov 28, 2003 12:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Boofo
Power Member
Power Member


Joined: 10 Feb 2003
Posts: 1431
Location: Des Moines, IA (USA)

PostPosted: Fri Nov 28, 2003 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
captjlddavis
Junior Member
Junior Member


Joined: 09 Feb 2003
Posts: 65

PostPosted: Fri Nov 28, 2003 1:19 am    Post subject: Reply with quote

Boofo,

F5 and edit target name.

regards:captjlddavis
Back to top
View user's profile Send private message
Coco
Senior Member
Senior Member


Joined: 07 Feb 2003
Posts: 223
Location: Belgium

PostPosted: Fri Nov 28, 2003 2:01 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Boofo
Power Member
Power Member


Joined: 10 Feb 2003
Posts: 1431
Location: Des Moines, IA (USA)

PostPosted: Fri Nov 28, 2003 2:42 am    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Coco
Senior Member
Senior Member


Joined: 07 Feb 2003
Posts: 223
Location: Belgium

PostPosted: Fri Nov 28, 2003 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group