Try this, after turning the perl scrit into a batch file do:<br>
'rename script.bat script.cmd'<br>
<br>
A cmd script is a batch scritpt; the only difference I am aware of is
that Windows NT decided to use &quot;cmd&quot; for it's batch extensions when the
command interpreter changed from 'command.exe' to 'cmd.exe'.<br><br><div><span class="gmail_quote">On 9/12/05, <b class="gmail_sendername">Michael R. Wolf</b> &lt;<a href="mailto:MichaelRWolf@att.net">MichaelRWolf@att.net
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I got this question from a recent student in one of the Perl classes I
<br>taught.&nbsp;&nbsp;Anyone ever heard of such a thing or have an idea other than a<br>simple shell-like script that copies and fiddles with permissions?<br><br>=====================================<br><br>How do you convert a perl script with an extension of .pl into a Windows
<br>Command Script with an extension of .CMD?<br><br>I know how to convert a perl script into a Windows Batch Script with pl2bat<br>but I can't seem to find a similar utility for .CMD files.<br><br>There must be a way since a former vendor has done all of their Perl scripts
<br>in this manner.<br><br>Do you have any ideas?<br><br>--<br>Michael R. Wolf<br>&nbsp;&nbsp;&nbsp;&nbsp;All mammals learn by playing!<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:MichaelRWolf@att.net">MichaelRWolf@att.net</a><br><br><br>_____________________________________________________________
<br>Seattle Perl Users Group Mailing List<br>&nbsp;&nbsp;&nbsp;&nbsp; POST TO: <a href="mailto:spug-list@pm.org">spug-list@pm.org</a><br>SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list">http://mail.pm.org/mailman/listinfo/spug-list
</a><br>&nbsp;&nbsp;&nbsp;&nbsp;MEETINGS: 3rd Tuesdays, Location: <a href="http://Amazon.com">Amazon.com</a> Pac-Med<br>&nbsp;&nbsp;&nbsp;&nbsp;WEB PAGE: <a href="http://seattleperl.org/">http://seattleperl.org/</a><br></blockquote></div><br><br clear="all"><br>
-- <br>--<br>Perfection is just a word I use occasionally with mustard.<br>--Atom Powers--