Hello,
I am having a bitch of time getting drag and drop to work with perl on Windows XP.
It's been a while since I have been hacking around with perl.. So maybee Im just rusty. However, I remember doing this before with windows 98 no problemo.
If I remember the jist.... You just use pl2bat on your perl script and then when you drop a file onto the batch file it is passed to your script in @ARGV... right??
Doesnt seem to work...
------------------------------
#!perl
print "TEST\n";
print "ARGV: ..@ARGV..\n";
<>;
------------------------------
Then:
c:\pl2bat test.pl
c:\test.bat
HELLO
ARGV: ....
c:\test.bat test.pl
HELLO
ARGV: ..test.pl..
Ok seems to work...
Then I double click on the batch file... I get the expected.
HELLO
ARGV: ....
It waits for me to hit return then the cmd window closes.
If you drag and drop on to the batch file, the cmd window opens and then immediately closes...
vitals....
**Win Xp
**Activestate Perl
c:\perl -v
This is perl, v5.8.2 built for MSWin32-x86-multi-thread
(with 25 registered patches, see -V for more detail)
.... snip .......
.Any Suggestions???
thanks..
zzspectrez
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.