473,394 Members | 1,746 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,394 software developers and data experts.

Runing exe or a bat file on server side using asp

Hi all

im trying to run a file localy on my server (2003) using asp , this is the
code :
<%@ LANGUAGE = "JAVASCRIPT" %>
<%
var commandLine = "File_NAME.EXE";
var WshShell = Server.CreateObject("WScript.Shell");
WshShell.Run(commandLine);
WshShell = null;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html><head><title>Untitled</title></head><body>Done!</body></html>
this is what i got so far , when i run the page i can see in the task
manager that the file do start but nothing happand ! i also notice that the
user that is runing this file called "Newwork service" failing to work i
tryed to give Newwork service more permissions using the local secuty policy
tool at the control panel (also didnt worked )
i just dont get it , it sould be trivial but it just doesnt works
help will be most appreciated
--
mastar
Nov 21 '06 #1
5 2818

"mastar" <ma********@hotmail.comwrote in message
news:34**********************************@microsof t.com...
Hi all

im trying to run a file localy on my server (2003) using asp , this is the
code :
<%@ LANGUAGE = "JAVASCRIPT" %>
<%
var commandLine = "File_NAME.EXE";
var WshShell = Server.CreateObject("WScript.Shell");
WshShell.Run(commandLine);
WshShell = null;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html><head><title>Untitled</title></head><body>Done!</body></html>
this is what i got so far , when i run the page i can see in the task
manager that the file do start but nothing happand ! i also notice that
the
user that is runing this file called "Newwork service" failing to work i
tryed to give Newwork service more permissions using the local secuty
policy
tool at the control panel (also didnt worked )
i just dont get it , it sould be trivial but it just doesnt works
help will be most appreciated
--
mastar

hold down shift and right click EXE file and see if you can run it as
Network_Service.

Nov 21 '06 #2
thanks for you replay
i did what you told me and used the run as , but it wouldnt let me enter the
Network Service as a user or pick it out from the list

what now ?

--
mastar
"Slim" wrote:
>
"mastar" <ma********@hotmail.comwrote in message
news:34**********************************@microsof t.com...
Hi all

im trying to run a file localy on my server (2003) using asp , this is the
code :
<%@ LANGUAGE = "JAVASCRIPT" %>
<%
var commandLine = "File_NAME.EXE";
var WshShell = Server.CreateObject("WScript.Shell");
WshShell.Run(commandLine);
WshShell = null;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html><head><title>Untitled</title></head><body>Done!</body></html>
this is what i got so far , when i run the page i can see in the task
manager that the file do start but nothing happand ! i also notice that
the
user that is runing this file called "Newwork service" failing to work i
tryed to give Newwork service more permissions using the local secuty
policy
tool at the control panel (also didnt worked )
i just dont get it , it sould be trivial but it just doesnt works
help will be most appreciated
--
mastar


hold down shift and right click EXE file and see if you can run it as
Network_Service.

Nov 21 '06 #3

"mastar" <ma********@hotmail.comwrote in message
news:59**********************************@microsof t.com...
thanks for you replay
i did what you told me and used the run as , but it wouldnt let me enter
the
Network Service as a user or pick it out from the list

what now ?
ok

are you sure its not running as IUSR_<SERVER>

you also said you were looking into permissions using the local security
policy, did you check log on as batch job?

What is this file compiled from, VB, C++ ??

does it in turn use other resources that need permissions?

Can you register it as a COM+ instade of a EXE?
--
mastar
"Slim" wrote:
>>
"mastar" <ma********@hotmail.comwrote in message
news:34**********************************@microso ft.com...
Hi all

im trying to run a file localy on my server (2003) using asp , this is
the
code :
<%@ LANGUAGE = "JAVASCRIPT" %>
<%
var commandLine = "File_NAME.EXE";
var WshShell = Server.CreateObject("WScript.Shell");
WshShell.Run(commandLine);
WshShell = null;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html><head><title>Untitled</title></head><body>Done!</body></html>
this is what i got so far , when i run the page i can see in the task
manager that the file do start but nothing happand ! i also notice that
the
user that is runing this file called "Newwork service" failing to work
i
tryed to give Newwork service more permissions using the local secuty
policy
tool at the control panel (also didnt worked )
i just dont get it , it sould be trivial but it just doesnt works
help will be most appreciated
--
mastar


hold down shift and right click EXE file and see if you can run it as
Network_Service.


Nov 22 '06 #4
thanks for you help Slim , anyway this is what i did and its working
i changed the user that the IIS is working with from Network services to
System (and i know that i just created a huge security hole - but what can i
do ! nothing else worked ) now i need to find out how do i protect my self
from this breach
--
mastar
"Slim" wrote:
>
"mastar" <ma********@hotmail.comwrote in message
news:59**********************************@microsof t.com...
thanks for you replay
i did what you told me and used the run as , but it wouldnt let me enter
the
Network Service as a user or pick it out from the list

what now ?

ok

are you sure its not running as IUSR_<SERVER>

you also said you were looking into permissions using the local security
policy, did you check log on as batch job?

What is this file compiled from, VB, C++ ??

does it in turn use other resources that need permissions?

Can you register it as a COM+ instade of a EXE?
--
mastar
"Slim" wrote:
>
"mastar" <ma********@hotmail.comwrote in message
news:34**********************************@microsof t.com...
Hi all

im trying to run a file localy on my server (2003) using asp , this is
the
code :
<%@ LANGUAGE = "JAVASCRIPT" %>
<%
var commandLine = "File_NAME.EXE";
var WshShell = Server.CreateObject("WScript.Shell");
WshShell.Run(commandLine);
WshShell = null;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html><head><title>Untitled</title></head><body>Done!</body></html>
this is what i got so far , when i run the page i can see in the task
manager that the file do start but nothing happand ! i also notice that
the
user that is runing this file called "Newwork service" failing to work
i
tryed to give Newwork service more permissions using the local secuty
policy
tool at the control panel (also didnt worked )
i just dont get it , it sould be trivial but it just doesnt works
help will be most appreciated
--
mastar
hold down shift and right click EXE file and see if you can run it as
Network_Service.



Dec 4 '06 #5
Hye Master,
Can you let me know how you have changed the user from Network Services
to System.
I am also running through this issue long time. As far as the security
is concerned it ok for me.
Making the thing run is more important for me now.

Beatle.

On Dec 4 2006, 1:24 pm, mastar <mastare...@hotmail.comwrote:
thanks for you help Slim , anyway this is what i did and its working
i changed the user that the IIS is working with from Network services to
System (and i know that i just created a huge security hole - but what can i
do ! nothing else worked ) now i need to find out how do i protect my self
from this breach
--
mastar

"Slim" wrote:
"mastar" <mastare...@hotmail.comwrote in message
news:59**********************************@microsof t.com...
thanks for you replay
i did what you told me and used the run as , but it wouldnt let me enter
the
>Network Serviceas a user or pick it out from the list
what now ?
ok
are you sure its notrunningas IUSR_<SERVER>
you also said you were looking into permissions using the local security
policy, did you check log on as batch job?
What is this file compiled from, VB, C++ ??
does it in turn use other resources that need permissions?
Can you register it as a COM+ instade of a EXE?
--
mastar
"Slim" wrote:
>"mastar" <mastare...@hotmail.comwrote in message
>>news:34**********************************@micros oft.com...
Hi all
im trying to run a file localy on my server (2003) usingasp, this is
the
code :
<%@ LANGUAGE = "JAVASCRIPT" %>
<%
var commandLine = "File_NAME.EXE";
var WshShell = Server.CreateObject("WScript.Shell");
WshShell.Run(commandLine);
WshShell = null;
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Untitled</title></head><body>Done!</body></html>
this is what i got so far , when i run the page i can see in the task
manager that the file do start but nothing happand ! i also notice that
the
user that is runing this file called "Newwork service" failing to work
i
tryed to give Newwork service more permissions using the local secuty
policy
tool at the control panel (also didnt worked )
i just dont get it , it sould be trivial but it just doesnt works
help will be most appreciated
--
mastar
>hold down shift and right click EXE file and see if you can run it as
>Network_Service.
Jan 26 '07 #6

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

Similar topics

20
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to...
21
by: ryanmhuc | last post by:
I know the subject might be confusing. I am no beginner with javascript but I haven't been able to figure out how to get the javascript file name from code inside the file. So you have an HTML...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
2
by: serge calderara | last post by:
Dear all, I have build asn ASP application which is collecting data from an SQL server database through store procedure call Running my we app from VS2003 environement works ok Copy my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.