Ask a Question related to ASP, Design and Development.
-
Curt_C [MVP] #1
Re: Cant run batch file from .asp under iis6
what's in the BAT?
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
[url]http://www.Darkfalz.com[/url]
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"mike singer" <nospam_zookeeper@wwwhr.com> wrote in message
news:OD60u6hUDHA.2040@TK2MSFTNGP11.phx.gbl...This> This works fine from IIS5 but not from IIS6
>
> miketest.asp calls miketest.bat
>
> I was getting permission denied until I opened up permissions on cmd.exe.
> Now it runs w/ no error messages but the batch file does not execute.real> is just a sample put together to easily reproduce a problem. We have a> live system impacted by this. Any help would be appreciated.
>
>
> <%@ language="vbscript" EnableSessionState=False %>
> <%
> Option Explicit
> Response.Buffer = True
> Response.Expires = 0
>
> %>
> <HTML>
> <TITLE>REWARD: Import Log</TITLE>
> <%
>
> Dim oConn
> Call Main
>
>
> Sub Main
>
> CheckFiles()
>
> End Sub
>
>
>
> Sub CheckFiles()
>
> Dim oShell
> Dim EXEPath
> Dim cmd
>
>
> EXEPath = "D:\test\miketest\"
>
> Set oShell = Server.CreateObject("WScript.Shell")
> cmd = EXEPath & "miketest.BAT"
> response.write (cmd)
>
> '
> ' RUN!
> '
> oShell.Run(cmd)
>
>
>
> End Sub
> %>
>
> </HTML>
>
>
>
Curt_C [MVP] Guest
-
TO run an Application from Batch file
Hi, I want to run the batch file from the asp.net web(intranet)application. The batch files works fine if it has some copy or del command,... -
scheduled batch file does not run
I am running a batch file that basically uses xcopy to copy files to a network share. I have scheduled it to run under the domain administrator... -
batch file will not run under scheduler service
I am trying to use a batch file to copy some files from a hard drive to a network drive. The batch file name is hrback.cmd. The network drive is... -
How to run a batch file.
I want to run a batch file located on my c drive file: C:\mybatchfile.bat sincerely yours Mike John -
Login batch file
We run a NT4 server with our workstations running Win98. We have a batch file that runs a log on script when each user logs into the network. The... -
Curt_C [MVP] #2
Re: Cant run batch file from .asp under iis6
This is what I use
[url]http://www.darkfalz.com/1100/[/url]
--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
[url]http://www.Darkfalz.com[/url]
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------
"mike singer" <nospam_zookeeper@wwwhr.com> wrote in message
news:#tGTX4qUDHA.1872@TK2MSFTNGP12.phx.gbl...if> In the real world, I'm not sure. In my test, It just echos the time to a
> text file so that I know whether it runs or not. If I call a fake name, I
> get an error, so it definitely knows that it is executing the file, but it
> doesn't really. I added a continual ping in the batch file and even put
> ping in the folder and gave all rights, I watched in task manager to seea> ping ever loaded. It did not. No error messages, nothing, just doesn't
> execute.
>
>
>
> "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
> news:eUhiX$iUDHA.3308@tk2msftngp13.phx.gbl...> cmd.exe.> > what's in the BAT?
> >
> > --
> > ----------------------------------------------------------
> > Curt Christianson (Software_AT_Darkfalz.Com)
> > Owner/Lead Designer, DF-Software
> > [url]http://www.Darkfalz.com[/url]
> > ---------------------------------------------------------
> > ..Offering free scripts & code snippits for everyone...
> > ---------------------------------------------------------
> >
> > "mike singer" <nospam_zookeeper@wwwhr.com> wrote in message
> > news:OD60u6hUDHA.2040@TK2MSFTNGP11.phx.gbl...> > > This works fine from IIS5 but not from IIS6
> > >
> > > miketest.asp calls miketest.bat
> > >
> > > I was getting permission denied until I opened up permissions on> > This> > > Now it runs w/ no error messages but the batch file does not execute.> > > is just a sample put together to easily reproduce a problem. We have>> > real> >> > > live system impacted by this. Any help would be appreciated.
> > >
> > >
> > > <%@ language="vbscript" EnableSessionState=False %>
> > > <%
> > > Option Explicit
> > > Response.Buffer = True
> > > Response.Expires = 0
> > >
> > > %>
> > > <HTML>
> > > <TITLE>REWARD: Import Log</TITLE>
> > > <%
> > >
> > > Dim oConn
> > > Call Main
> > >
> > >
> > > Sub Main
> > >
> > > CheckFiles()
> > >
> > > End Sub
> > >
> > >
> > >
> > > Sub CheckFiles()
> > >
> > > Dim oShell
> > > Dim EXEPath
> > > Dim cmd
> > >
> > >
> > > EXEPath = "D:\test\miketest\"
> > >
> > > Set oShell = Server.CreateObject("WScript.Shell")
> > > cmd = EXEPath & "miketest.BAT"
> > > response.write (cmd)
> > >
> > > '
> > > ' RUN!
> > > '
> > > oShell.Run(cmd)
> > >
> > >
> > >
> > > End Sub
> > > %>
> > >
> > > </HTML>
> > >
> > >
> > >
> >
>
Curt_C [MVP] Guest



Reply With Quote

