Vista 64 Bit file copy problems

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Post by Muroph »

you have to select the 'run script' category then click the 'new' button on the upper right corner of the window.
i think you clicked on the 'new' category.

ps: you can point to a script file in the 'load script file' category.
paste the script in a txt file, change the extension to xys and point to this file.
that's what i did.
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Post by ivan »

Of course, being a good boy, today I updated to 7.30.0000 However, the problem still exists so it would be really great if we could tackle it together. Yes, for now there's a workaround, but we all know that a solution is much better 8)

MrHaugen
Posts: 13
Joined: 27 Jun 2008 14:01

Post by MrHaugen »

Muroph wrote:you have to select the 'run script' category then click the 'new' button on the upper right corner of the window.
i think you clicked on the 'new' category.

ps: you can point to a script file in the 'load script file' category.
paste the script in a txt file, change the extension to xys and point to this file.
that's what i did.
Yea. I found it. I updated my last post, and as I said there:
the problem problem now is that I get alot of messages that the lines "is not a valid script command" when I use the shortcuts. I think it's every line that is relevant to the variables.ini.

Anyone know how to correct this?

admin
Site Admin
Posts: 65312
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

MrHaugen wrote:
Muroph wrote:you have to select the 'run script' category then click the 'new' button on the upper right corner of the window.
i think you clicked on the 'new' category.

ps: you can point to a script file in the 'load script file' category.
paste the script in a txt file, change the extension to xys and point to this file.
that's what i did.
Yea. I found it. I updated my last post, and as I said there:
the problem problem now is that I get alot of messages that the lines "is not a valid script command" when I use the shortcuts. I think it's every line that is relevant to the variables.ini.

Anyone know how to correct this?
Can you post your script here?

MrHaugen
Posts: 13
Joined: 27 Jun 2008 14:01

Post by MrHaugen »

Is the exact same scripts as you mentioned in a previous link.

Copy:

Code: Select all

//save temp ini path 
 set $list, %temp%\; 
 addstr $list, teracopylist_<date yyyymmdd_hhnnss>.tmp; 
 //copy list of items to clipboard and save in a variable 
 #101; 
 set $items, <clipboard>; 
 //save operation and list path in the ini file 
 SetKey copy, teracopyop, tc, variables.ini; 
 setkey $list, teracopylist, tc, variables.ini; 
 //save list in the temp ini 
 setkey <crlf>$items, teracopylist, tc, $list; 
 status TeraCopy: Copy, , ready;
Cut:

Code: Select all

//save temp ini path 
 set $list, %temp%\; 
 addstr $list, teracopylist_<date yyyymmdd_hhnnss>.tmp; 
 //copy list of items to clipboard and save in a variable 
 #101; 
 set $items, <clipboard>; 
 //save operation and list path in the ini file 
 SetKey move, teracopyop, tc, variables.ini; 
 setkey $list, teracopylist, tc, variables.ini; 
 //save list in the temp ini 
 setkey <crlf>$items, teracopylist, tc, $list; 
 status TeraCopy: Copy, , ready;
Paste:

Code: Select all

//save current path. this will be the target folder 
 set $path, <curpath>; 
 //restore operation type and temp file path 
 getkey $op, teracopyop, tc, variables.ini; 
 getkey $list, teracopylist, tc, variables.ini; 
 //run teracopy.exe using command line parameters 
 //teracopy.exe [operation] *[list of source files] [target] 
 run ""%programfiles%\TeraCopy\teracopy.exe" $op *"$list" "$path\""; 
 status TeraCopy: Paste, , ready;

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Post by Muroph »

@MrHaugen
what version of xy are you using?
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

MrHaugen
Posts: 13
Joined: 27 Jun 2008 14:01

Post by MrHaugen »

7.20 trial version...

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Post by Muroph »

MrHaugen wrote:7.20 trial version...
that's the problem.
you need xy v7.20.0025 or newer to run the scripts you posted.
it's posted together with the script where you copied it (v7.20.0027 after the last update).
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

MrHaugen
Posts: 13
Joined: 27 Jun 2008 14:01

Post by MrHaugen »

That explains a bit!
I can se that the 7.30 was added yesterday. Worked alot better now.
But I STILL have one problem.

I'm running Vista 64 bit OS. And it have A Program Files and a Program Files (x86) directory. The script does not take this into consideration, and therefor looks for the teracopy.exe under Program Files (x86) directory. But it's in the other directory.

Tried to change the variable but to no use.
The windows environment variable "programfiles" point's to "Program Files", and it's the correct path, so I don't understand what variable XYPlorer use.

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Post by Muroph »

MrHaugen wrote: I'm running Vista 64 bit OS. And it have A Program Files and a Program Files (x86) directory. The script does not take this into consideration, and therefor looks for the teracopy.exe under Program Files (x86) directory. But it's in the other directory.

Tried to change the variable but to no use.
The windows environment variable "programfiles" point's to "Program Files", and it's the correct path, so I don't understand what variable XYPlorer use.
well, i don't have vista so i can't be sure.
but i found something after using google for a while.

the problem is that xy is 32bit and your teracopy is 64bits.
%programfiles% points to 'program files (x86)' if it's a 32bit app using the variable, and to 'program files' when it's a 64bits app.
when you install teracopy 64bit it'll go to the 64bit folder, but xy will point to the 32bit folder, hence the problem.

try changing %programfiles%\TeraCopy\teracopy.exe (this is the default install path in xp) to your full path to teracopy.exe.
but don't mess with the quotes on that line!
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

MrHaugen
Posts: 13
Joined: 27 Jun 2008 14:01

Post by MrHaugen »

Muroph wrote:
MrHaugen wrote: the problem is that xy is 32bit and your teracopy is 64bits.
%programfiles% points to 'program files (x86)' if it's a 32bit app using the variable, and to 'program files' when it's a 64bits app.
when you install teracopy 64bit it'll go to the 64bit folder, but xy will point to the 32bit folder, hence the problem.

try changing %programfiles%\TeraCopy\teracopy.exe (this is the default install path in xp) to your full path to teracopy.exe.
but don't mess with the quotes on that line!
You are abolutely correct.
I changed the script to point directly to the right exe file. The reason I asked was that I could not make that work in the first place. I probably just had a spelling error :(

It all works good now. Thanks for all your help guys!

I'd also like to point out that this should preferably be solwed somehow, and not just bypassed with such methods.
I'm not complaining of the end result though. Teracopy seams to beat Windows Explorer file copy by a good margine :) I will not miss it at all.

As teracopy is a free product, would it not be possible to integrate it somehow, and be able to activate it simply? Might be alot more roules here than I know of though...

admin
Site Admin
Posts: 65312
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

MrHaugen wrote:As teracopy is a free product, would it not be possible to integrate it somehow, and be able to activate it simply? Might be alot more roules here than I know of though...
Me making money by integrating his free product isn't probably the idea of the author of TeraCopy. :wink:

But with scripting, accompanying INI files, and (this will come with scripting 2.0) conditional statements in scripting, a script file (XYS) could be designed and offered for download that would effectively function as a plugin for TeraCopy (or any other similar software) support. On first run you would be asked for some input (location of TeraCopy, expected data format, etc.), then you would just have to click Cut, Copy, and Paste in a little popup menu.

MrHaugen
Posts: 13
Joined: 27 Jun 2008 14:01

Post by MrHaugen »

Yea. You're right. Would probably be a bad idea.
Some way to include the script as a plugin and set the shortcuts, as well as a link to teracopy site or download would even make this doable for script and XYPlorer noobs like me :)

The file copy works almost flawlessly now. Keyboard shortcuts work in XYPlorer as well as in Windows Explorer. Teracopy set as default file handler. Teracopy is even set as the top selection for drag and drop context menu when using Windows Explorer.

Only problem with XYPlorer and drag and drop is that the teracopy copy and move commands is in a sub menu in the context menu, and pretty far down on the list. Is there a way to set Teracopy as the top context menu for file copy and move operation? Possibly as default copy command when left dragging as well?


By the way. I found out that even IF explorer file copy is used in XYPlorer and the program stops responding when moving large files, the file copy continues, and will eventually complete. Though it's pretty irritating that you can't use the XYPlorer in the meantime...

ivan
Posts: 577
Joined: 02 Apr 2008 12:52
Contact:

Post by ivan »

MrHaugen wrote:By the way. I found out that even IF explorer file copy is used in XYPlorer and the program stops responding when moving large files, the file copy continues, and will eventually complete. Though it's pretty irritating that you can't use the XYPlorer in the meantime...
Yes, I can confirm that the copy does continue despite the freezing state. However, it has annoying habit of coming back in your face after the copy is done even if you already have another app running on the foreground.

Basically, using XYplorer to copy files of large size renders it unusable, which is in stark contrast to Windows Explorer. Currently, that's the only major downside that really gets me down :(
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122
Image

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

admin wrote:But with scripting, accompanying INI files, and (this will come with scripting 2.0) conditional statements in scripting, a script file (XYS) could be designed and offered for download that would effectively function as a plugin for TeraCopy (or any other similar software) support. On first run you would be asked for some input (location of TeraCopy, expected data format, etc.), then you would just have to click Cut, Copy, and Paste in a little popup menu.
Yeah, and with scripts on middle-click you'll be able to use those functions on a context-menu of your own. Plus, even later with CTB to have your TB buttons for Cut/Copy/Paster to use those functions !

No really, XY is awesome! :D
Proud XYplorer Fanatic

Post Reply