Why this throws an error message...?
Posted: 17 Aug 2010 18:36
Code: Select all
::focus "p2"; goto "%tmp%"; selfilter "*.tmp"; #804Code: Select all
goto "%tmp%"; selfilter "*.tmp"; #804Any help, please...?
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Code: Select all
::focus "p2"; goto "%tmp%"; selfilter "*.tmp"; #804Code: Select all
goto "%tmp%"; selfilter "*.tmp"; #804Try this:SkyFrontier wrote:If I justCode: Select all
::focus "p2"; goto "%tmp%"; selfilter "*.tmp"; #804everything runs fine. But I need this code to get %tmp% content - invisibly, if possible (ie without leaving current panel nor going to it in the other) - WITHOUT leaving the current pane I'm in.Code: Select all
goto "%tmp%"; selfilter "*.tmp"; #804
Any help, please...?
Code: Select all
//confirm before copying
Msg "Are you you want to copy contents of <br>%temp% <br>to <br><get path 2>?",1;
//copy to pane 2 *.tmp files from %temp% folder
copyto "<get path 2>", "%temp%\*.tmp";
Code: Select all
copyto "<get path 2>", "%temp%\*.tmp";Code: Select all
copyto "<get path 1>", "%tmp%\*.tmp";Code: Select all
copyto "<curpath>", "%tmp%\*.ext";Works for me. Maybe the tmp file you are copying is in use. I got a message that an application is accessing a tmp file which i skipped and it copied alright from there.SkyFrontier wrote:...although I'd like to have a deep thought on the question itself, as it seems that the scripting function is broken somewhere...
It OPENS the TMP directory and stops there, when it should simply continue the copy of files...
Well the script I posted does not have the command "focus" at all. Are you referring to the script you posted or to my script?SkyFrontier wrote:Weird, weird... But I narrowed down the problem a bit:
If I launch the script with Pane 2 active, it works.
From Pane 1, it doesn't.
-since it's a "focus "p2"" problem, at least I'd expect the problem to show in an opposite situation, ie, launching it with P1 active it should work because the script starts asking focus to go to the other pane!
Yep - my dumb sequence of commands... ("script"... hah!)Are you referring to the script you posted or to my script?