Hi All,
I am trying to run a bat file from ASP and I am new to asp.
Nothing is happening in this code. Page is running fine but bat file is not running.
This bat file is trying to create a folder(My actual requirement is to interact with a application and not creating a folder).
But the folder is not getting created. I also tried other DOS commands in bat file but nothing happened.
Is their something I have to do to run bat files before using the above script?
I am trying to run a bat file from ASP and I am new to asp.
Code:
set wshell = CreateObject("WScript.Shell")
wshell.Run("c:\file.Bat")
This bat file is trying to create a folder(My actual requirement is to interact with a application and not creating a folder).
But the folder is not getting created. I also tried other DOS commands in bat file but nothing happened.
Is their something I have to do to run bat files before using the above script?
Comment