I know that can be solved with python also, but i have to call from django almost 50 VBScripts (that are functional). I don't want to rewrite all that scripts to python, cause i don't have time for this. And I also have a huge library of vbscripts so if i will need a new script in the future i will just modify one of the scripts from my library. That's why i need a way to call cscript.exe within django.
I will descibe what i would like to do with django and my vbscripts: Django should call cscript.exe which will execute a vbscript ; django takes a text input from the user and forward that to the script, the script process the input and forwards the output result to django; the result is stored in a database or displayed on the page. Does someone have a solution ? Thanks On Jul 21, 5:01 pm, Carl Karsten <[EMAIL PROTECTED]> wrote: > You might want to describe the current problem you need to solve. > > good chance it will be easier to solve using a few lines of python/django than > trying to run your existing vbscript. > > Carl K > > braveheart wrote: > > Anyone else have other solution ? > > > On Jul 20, 8:54 pm, Dennis Allison <[EMAIL PROTECTED]> > > wrote: > >> actually, look at module subprocess rather than os as the subprocess > >> module contains the current best practice solution. (Check the Python > >> 3000 docs to see what will be going away and avoid using them. :-) ) > > >> BUT, the vbscript GUI will not be available throught the web, at least not > >> easily. > > >> On Fri, 20 Jul 2007, Andrey Khavryuchenko wrote: > > >>> b> I'm an Windows System Administrator and for my job i often use > >>> b> vbscripts to automate my tasks. I was wondering if Django can call > >>> b> cscript.exe to execute a vbscript file (Offcourse django is assumed to > >>> b> run under Windows)? I know that i can also script wmi with python but > >>> b> i'm allready mastering vbscript and have a huge library of function > >>> b> vbscripts. > >>> b> Can someone help me pls ? > >>> Django app is a plain python script. So check python doc for starting > >>> external applications (module os). > >> -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---