Re: a file dropped onto a desktop shortcut

"Fer" <[email protected]>
Newsgroups gmane.comp.windows.gui4cli
Message-ID <[email protected]>

Hi Flicknemo


Files dropped on an exe or its desktop shortcut
can be read by sys.comline or sys.gccomline.
The first returns a PC-path, the second a G4C-path
Example:

~~~~~~~~~~~~~~~~~~~~~
xonload arg
if $$sys.GCcomline > "" //if a file or dir is dropped
// on the exe or its shortcut or the contents of the
// command line argument
arg = $$sys.GCcomline
ifexists dir $arg
say "Dirname = $arg"
elseifexists file $arg
say "Filename = $arg"
else
say "Not a valid drop or argument"
endif
endif
~~~~~~~~~~~~~~~~~~~~~


A working example can be found in FotoViewer.zip
in the files/gui section.


fer




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/gui4cli/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/gui4cli/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.