The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 path of a draged file

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000