Move or Copy html file with accompany folder another folder

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
jfor
Junior Member
Junior Member
Posts: 7
Joined: 2008-05-07, 15:41 UTC

Move or Copy html file with accompany folder another folder

Post by *jfor »

I'm sorry about my limited using in TC. But I really have a trouble in managing my loaded files.

As you know, when we save a html file, it always accompany by a folder, and they always move together in Microsoft Explorer or Firefox.
But in Tc, when I moved that html file or that folder,It didn't move the left folder or files with it.

How can I fix it ?

Thank you
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

This is a special behaviour of Windows Explorer

see .files folder moving (automatically) ability

You can use Ctrl+C/Ctrl+X/Ctrl+V as a workaround though:

Copy: Do a Ctrl+C on file.html and a Ctrl+V at destination folder
Move: Do a Ctrl+X on file.html and a Ctrl+V at destination folder

This uses Windows Explorer method to copy/move file with related folder.
Last edited by sqa_wizard on 2008-05-08, 11:22 UTC, edited 1 time in total.
#5767 Personal license
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

When deleting html file, TC delete accompany folder too, but not when copying or moving!
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

ts4242 wrote:When deleting html file, TC delete accompany folder too, but not when copying or moving!
Confirmed.
But only with <Del> and not with <Shift +Delete> (directly)!

(TC7.03 / Vista / "Explorer delete method" is unchecked )

Bug or feature?

Regards,
Holger
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Batch file:

Code: Select all

copy %1%2 %3
md %3%4_files
copy %1%4_files\*.* %3%4_files\
Taken from the Russian forum (perhaps you can read Russian).
If you can't:
Parameters %P %N %T %O
Cursor is placed on the FILE
This file together with the "_files" folder and its contents is copied to ANOTHER panel
Single user license #329241
PowerPro scripts for Total Commander
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Vochomurka wrote:...
This file together with the "_files" folder and its contents is copied to ANOTHER panel
The _NAME depends on the language of the installed OS:
http://msdn.microsoft.com/en-us/library/bb776887.aspx
Connected files wrote: For some languages, it is possible to use a localized equivalent of "_files" to create a subfolder for connected files. The following table lists the valid strings that can be appended to a document name to create a connected files subfolder. Note that some of these strings have '-' as their first character rather than '_' or '.'.

"_archivos" "_arquivos" "_bestanden" "_bylos"
"-Dateien" "_datoteke" "_dosyalar" "_elemei"
"_failid" "_fails" "_fajlovi" "_ficheiros"
"_fichiers" "-filer" ".files" "_files"
"_file" "_fitxers" "_fitxategiak" "_pliki"
"_soubory" "_tiedostot"

Note This feature is sensitive to the case of the extension.
For instance, for the example given above, a subfolder named "MyDoc_Files" will not be connected to MyDoc.htm.
Even the underscore isn't guaranteed.

Regards,
Holger
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Two vbscripts for this task from wincmd.ru:
1) for copying;
2) for moving.
jfor
Junior Member
Junior Member
Posts: 7
Joined: 2008-05-07, 15:41 UTC

Post by *jfor »

Partners thank you for your response my query.But none of this solutions are correct.
Please help me find the right solution or in total commander or some other browser.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, jfor.
jfor wrote:Partners thank you for your response my query.But none of this solutions are correct.
Please help me find the right solution or in total commander or some other browser.
sqa_wizard has already given you 1 absolutely correct solution which will work from inside T.C. as well:
sqa_wizard wrote:You can use Ctrl+C/Ctrl+X/Ctrl+V as a workaround though:
Copy: Do a Ctrl+C on file.html and a Ctrl+V at destination folder
Move: Do a Ctrl+X on file.html and a Ctrl+V at destination folder
This uses Windows Explorer method to copy/move file with related folder.
cf. a few posts up.

Regards,
Karl
jfor
Junior Member
Junior Member
Posts: 7
Joined: 2008-05-07, 15:41 UTC

Post by *jfor »

My friend karlchen the solution sqa_wizard NOT WORK with html files which download with Firefox browser. The difference is the use of underscore instead tο point.
Examples
Firefox browser archive....................{Myname_files}
Ιnternet Explorer browser archive.....{Myname.files }

Thank you for responce
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hi, Jfor.

In this case, Windows Explorer should not copy/move files saved by Firefox plus the corresponding folder, either, because Ctrl+C/Ctrl-V and Ctrl+X/Ctrl+V use the Explorer method to copy/move, i.e. they actually make Explorer do the job.

Moreover I cannot reproduce this problem here:
Opera appends "_files" to the html filename in order to get the foldername, too, just like Firefox.

Just ried it here inside T.C. 7.03:
+ KB926140 Windows PowerShell 1.0 Localized Installation Package for Windows Server 2003 and for Windows XP_files
+ KB926140 Windows PowerShell 1.0 Localized Installation Package for Windows Server 2003 and for Windows XP.htm

Marked the html file, pressed ctrl+c.
Switched to the target panel, pressed ctrl-v.
Result:
File plus folder were copied to the target folder.

Conclusion:
The problem you experience may not be caused by T.C. There may be a setting missing or incomplete or incorrect inside your registry?!

Karl
User avatar
HolgerK
Power Member
Power Member
Posts: 5411
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

2jfor
<Ctrl+C>/<Ctrl+X>,<Ctrl+V> works fine here with .file or _file. (WinXP SP3)

Please check the following registry key:
http://msdn.microsoft.com/en-us/library/bb776887.aspx wrote:Whether file connection is enabled or disabled is controlled by a REG_DWORD value, NoFileFolderConnection, of the following registry key.

* HKEY_CURRENT_USER
o Software
+ Microsoft
# Windows
* CurrentVersion
o Explorer

This value normally is not defined, and file connection is enabled.
If necessary, you can disable file connection by adding this value to the key and setting it to 1.
To enable file connection again, set NoFileFolderConnection to zero.
HTH,
Holger
jfor
Junior Member
Junior Member
Posts: 7
Joined: 2008-05-07, 15:41 UTC

Post by *jfor »

THANK YOU VERY MUCH MY NEW FRIEND karlchen
my problem dissolve with mod in registry
MISSION OVER
jfor
Junior Member
Junior Member
Posts: 7
Joined: 2008-05-07, 15:41 UTC

Post by *jfor »

THANK YOU VERY MUCH HolgerK
jfor
Junior Member
Junior Member
Posts: 7
Joined: 2008-05-07, 15:41 UTC

Post by *jfor »

[/b]THANK YOU VERY MUCH sqa_wizard
Post Reply