Executing a batch file on the server RRS feed

  • Question

  • User965574773 posted

    I have an asp.net vb app that uploads a zip file to our server. Once there, I want to automatically run a batch file that unpacks the zip file and then executes a python script against some database schemas. The batch file and python script works flawlessly, however, I cannot figure out how to call that batch file once the upload task is completed.

    Any ideas are greatly appreciated and thanks in advance...

    Wednesday, July 25, 2018 9:57 PM

All replies

  • User283571144 posted

    Hi harrisonchri,

    According to your description, I suggest you could append a piece of code in your web application after the upload task is completed.

    Like below:

            'save the file into the server folder code
    'call the batch file Dim proc As System.Diagnostics.Process = System.Diagnostics.Process.Start("your batch file with full path") proc.WaitForExit() proc.Close()

    Best Regards,


    Thursday, July 26, 2018 6:07 AM