[IronPython] Using IronPython To Run Bat Files
Martin.Maly at microsoft.com
Wed Jan 25 14:36:35 PST 2006
IronPython doesn't support the 'embedding in the bat files' option that you described.
IronPython generates the files for debugging purposes, given that we are still in Beta. However as we approach final release, this will change.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Asim Jalis
Sent: Friday, January 20, 2006 6:23 PM
To: users at lists.ironpython.com
Subject: [IronPython] Using IronPython To Run Bat Files
I want to use IronPython to replace some Perl scripts that we have that we run as bat files.
It's possible to embed Perl in bat files using syntax such as this:
perl.exe -w -x %~f0 %*
#! -*- perl script start -*-
print "Hello World\n";
Does IronPython support something like a -x option that automatically strips off the initial bat part of a file and then runs the rest of it as a Python script.
If there is nothing like this I can roll out my own. However, the issue I have right now is that every time I run IronPythonConsole.exe on a foo.py file, it generates foo.exe and foo.pdb. Is it possible to turn off this file generation?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users