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 / Web Services / April 2005

Tip: Looking for answers? Try searching our database.

Calling a batch file from a web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JoelBrimm - 15 Apr 2005 20:19 GMT
I have a batch file that executes a command line utility to do a secure file
copy from our server to a 3rd party server.  The batch file works fine, but
when I call it from the web service the log file shows that it hangs up on
the execution of the utility ( an exe ).  

Batch files without an exe work fine.  

I also tried running the exe from the web service ( rc =
shell(application,hide,true) ) but it didn't work either.

Is it possible to run an application from a web service?
Alvin Bruney [MVP - ASP.NET] - 16 Apr 2005 22:26 GMT
You need to determine if your webservice has permissions to fire an
executable. By default, it doesn't. Add these permissions first. You will
also need permissions for the process executing the exe to read or write
from the drive. So there are two sets of permissions issues you need to deal
with first.

Signature

Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc

>I have a batch file that executes a command line utility to do a secure
>file
[quoted text clipped - 9 lines]
>
> Is it possible to run an application from a web service?
JoelBrimm - 18 Apr 2005 12:51 GMT
Right now this is all on my development machine and I'm running it through
the Visual Studio Debugger.  Wouldn't that have all necessary permissions
since I'm an administrator on my development machine?

Thanks!
Joel Brimm.

> You need to determine if your webservice has permissions to fire an
> executable. By default, it doesn't. Add these permissions first. You will
[quoted text clipped - 15 lines]
> >
> > Is it possible to run an application from a web service?
JoelBrimm - 18 Apr 2005 20:54 GMT
Actually found out that the program has been running all the time, but it was
expecting a response at the command line.  Since there is no commandline
presentation, it appeared to be "locked up".

Thanks!

> Right now this is all on my development machine and I'm running it through
> the Visual Studio Debugger.  Wouldn't that have all necessary permissions
[quoted text clipped - 22 lines]
> > >
> > > Is it possible to run an application from a web service?

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.