Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Security / October 2004

Tip: Looking for answers? Try searching our database.

TO run an Application from Batch file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
viki - 24 Oct 2004 17:34 GMT
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, eventhough i could not see the command window.
But if the batch file has some application for e.g., Notepad,it seems
to open the notepad as i could see it running in the task manager, but
the application hangs. But if i give exit after some time, the
application exits but the process for notepad still running in the
task manager and does nothing.

I could run the same code in the windows vb.net application, it works
fine. Do i need to set any additional privileges to the user account
to run the application in the batch file.

To be more clear, i am using Integrated authentication for windows and
impersonation identity= true . Could anyone please share with me your
ideas if u have done anything similar of this kind...

Thanks in advance,
Viki
viki - 26 Oct 2004 01:29 GMT
Nobody is there to help me....
Viki
viki - 27 Oct 2004 12:55 GMT
Hi All,
Now i was able to run an application on the server from the batch file
, but i want to run the application in the client not on the server.
Does any body has undergone such thing, if so could u please help me
with the code..

Thanks,
Viki
Paul Clement - 27 Oct 2004 17:56 GMT
¤ Hi All,
¤ Now i was able to run an application on the server from the batch file
¤ , but i want to run the application in the client not on the server.
¤ Does any body has undergone such thing, if so could u please help me
¤ with the code..

See the following:

INFO: Executing Files by Hyperlink and the File Download Dialog Box
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/s
upport/kb/articles/Q232/0/77.ASP&NoWebContent=1


Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)
Paul Clement - 26 Oct 2004 17:44 GMT
¤ 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, eventhough i could not see the command window.
¤ But if the batch file has some application for e.g., Notepad,it seems
¤ to open the notepad as i could see it running in the task manager, but
¤ the application hangs. But if i give exit after some time, the
¤ application exits but the process for notepad still running in the
¤ task manager and does nothing.
¤
¤ I could run the same code in the windows vb.net application, it works
¤ fine. Do i need to set any additional privileges to the user account
¤ to run the application in the batch file.
¤
¤ To be more clear, i am using Integrated authentication for windows and
¤ impersonation identity= true . Could anyone please share with me your
¤ ideas if u have done anything similar of this kind...
¤

You don't typically run a program with a user interface from an ASP or ASP.NET server side
application. The application runs on the server and you cannot interact with it from the browser
side client.

You may want to check out the following thread:

http://makeashorterlink.com/?J15E23E99

Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.