T O P I C R E V I E W |
Sell |
Posted - 01/03/2006 : 07:53:30 AM Origin Version (Select Help-->About Origin): Origin Pro 7.587 Operating System: XP
I'm importing several files by drag and drop of the file into the origin workspace. After that an import filter and a script is invoked. Is there access to the path from where the draged file comes? I would like to save a generated worksheet window into that directory.
Hans
Edited by - Sell on 01/03/2006 07:54:18 AM |
2 L A T E S T R E P L I E S (Newest First) |
Sell |
Posted - 01/04/2006 : 03:00:30 AM Hi Mike,
it works perfectly. Exactly what I'd looked for.
Thanks a lot
Hans |
Mike Buess |
Posted - 01/03/2006 : 3:05:54 PM Hi Hans,
Try this in your script...
%Z=doc.dropfilename$; // path\name of dropped file for(i=1;i>0;i++) { %F=%[%Z,#i,\]; // ith token in path if(%F=="") break; %A=%F; }; // %A is file name %B=%[%Z,%[%Z]-%[%A]+1]; // file path
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 01/03/2006 3:06:39 PM |