I need to create a service that will call a batch file. Here's the catch though - once the service calls the batch file, the command window that the batch file runs in must be visible on the desktop, it cannot run hidden. So far nothing I've tried results in the command window being visible. Any suggestions?
spowel4
0
Newbie Poster
Recommended Answers
Jump to PostDoes it really need to be a windows service?
Could it just be a windowless app that has an internal timer that fires and spawns the batch file?
You could launch it from the startup folder or from the registry.
Jump to PostBy default, services aren't allowed to create user interface elements. You can enable this by going to Services in Control Panel and viewing the Properties for your service. Go to the Log On tab and check "Allow service to interact with desktop".
All 5 Replies
thines01
401
Postaholic
Team Colleague
Featured Poster
spowel4
0
Newbie Poster
BobS0327
24
Junior Poster in Training
thines01
401
Postaholic
Team Colleague
Featured Poster
viljoed
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.