This
#!/usr/bin/perl
open THEOUTPUT, ">e:/test/output.txt";
while ( <$ARGV[0]> ) { print THEOUTPUT};
worked with this NT command file (NTWS 4 SP5)
perl.exe e:\test\droptest.pl $1
Not sure why perl.exe wouldn't run it without an absolute path, but
such are the ways of DOSneyland.
Remember that the file association created in NT only applies to My
Computer/Explorer interfaces, and not to The Dark Windows.
--- [EMAIL PROTECTED] wrote:
> I would like to run a perl script and pass in an argument (ARGV[0])
> by
> dragging a textfile icon on to the perl script icon. This would be
> on an
> NT/Win2000 system using the icons in file manager, desktop, etc. The
> argument passed in would be the path to the textfile. This works
> with a
> DOS batfile, but I'm having trouble with a ".pl" file.
>
> Thanks,
> George Gage
> [EMAIL PROTECTED]
>
>
=====
---------------------------------
Notice: This e-mail is protected by the U.S. Constitution and the U.N. Declaration of
Human Rights. Unauthorized interception by any public or private agency is an ugly
sort of work to be in. Does your mother know you spend your days reading other
people's mail? Would she be proud of you?
---------------------------------
Please visit: http://clubs.yahoo.com/clubs/district41democrats
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/