473,387 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

calling a DOS executable with GUI status window from ASP.NET ??

I have a DOS script that runs the batch version of an application
(called SAS) that generates log file. Executed from DOS the script
runs fine generating the log file. Except for a quick GUI flash, the
executable appears to be just a DOS executable.

From ASP.NET, I've am able to run other DOS scripts and DOS
executables without any problems, using code similar to what's below.
However when I attempt run this particular executable the browser
client just hangs in the hourglass endlessly.

Any Ideas?

Also, I've heard of people passing data and parameters to IE and Word
from ASP.NET, any idea
related code:

the dos script:

mybat.bat:
del d:\hedis\asptosas.log
D:\PROGRA~1\SASINS~1\SAS\V8\SAS.EXE -sysin d:\mysite\mysasprog.sas

the asp.net (vb) code:

sub dosas(Src as object, E as EventArgs )
Dim myproc As System.Diagnostics.Process
myproc = New System.Diagnostics.Process()
myproc.StartInfo = New
System.Diagnostics.ProcessStartInfo("d:\mysite\myb at.bat")
myproc.Start()
myproc.WaitForExit()
Thanks for any information or help with this.
Nov 17 '05 #1
1 2979
Hi Jason,

As far as I know the Process class has a property that prevents the process
being launched from displaying its main window. You can try this to see if
it helps. Then, bear in mind that the user the ASP .NET process runs under
can have no desktop allocated to it, and in this case where SAS would draw
its window on? Finally, log on to the server where your ASP .NET application
runs and see are there any error message boxes or entries in the Event Log.
This might also give you a clue.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

<ja***@cyberpine.com> wrote in message
news:ef**************************@posting.google.c om...
I have a DOS script that runs the batch version of an application
(called SAS) that generates log file. Executed from DOS the script
runs fine generating the log file. Except for a quick GUI flash, the
executable appears to be just a DOS executable.

From ASP.NET, I've am able to run other DOS scripts and DOS
executables without any problems, using code similar to what's below.
However when I attempt run this particular executable the browser
client just hangs in the hourglass endlessly.

Any Ideas?

Also, I've heard of people passing data and parameters to IE and Word
from ASP.NET, any idea
related code:

the dos script:

mybat.bat:
del d:\hedis\asptosas.log
D:\PROGRA~1\SASINS~1\SAS\V8\SAS.EXE -sysin d:\mysite\mysasprog.sas

the asp.net (vb) code:

sub dosas(Src as object, E as EventArgs )
Dim myproc As System.Diagnostics.Process
myproc = New System.Diagnostics.Process()
myproc.StartInfo = New
System.Diagnostics.ProcessStartInfo("d:\mysite\myb at.bat")
myproc.Start()
myproc.WaitForExit()
Thanks for any information or help with this.


Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jay Haslup | last post by:
I am trying to figure out how to get the CMD (dos) window to come up when I call a executable. I have this working on a Win2000/apache machine and am trying to use the same code on a identical...
6
by: szabelin | last post by:
Hello, I am trying to call a function inside the javascript block from asp.net during the postback (NOT button's OnClick event handler though). The javascript function creates new popup window. I...
0
by: jason | last post by:
I have a DOS script that runs the batch version of an application (called SAS) that generates log file. Executed from DOS the script runs fine generating the log file. Except for a quick GUI flash,...
4
by: Peter Bons | last post by:
Hi all, I have an asp.net page with a button that has a javascript onclick method attached to it to display a modal dialog like this: If reportHasParameters Then 'add client side onclick()...
15
by: dspfun | last post by:
Hi, Is it possible to print the function name of the calling function? For example, f1() and f2() both calls f3(), in f3() I would like to print the name of the function calling f3() which...
18
by: mistral | last post by:
Is there some other (more advanced) effects for status bar, other than standard Scroller Bar, TypeWriter Scroller, Flashing Bar, Decrypter, Ticker, World Clock?
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
1
by: nupuragr82 | last post by:
I have a parent form and on button click I am calling a child page where i have a textbox and a button. On button click of child form I am passing the value of the Textbox to the Textbox in parent...
3
oranoos3000
by: oranoos3000 | last post by:
hi i want to get time of server with ajax,php,javascript i use under scritp and with method onload i get time on server and show on the page so i want in a period time the same function is run...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.