Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7809879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:34:23+00:00 2026-06-02T03:34:23+00:00

I’m making my Perl soft runing as a service on windows. For this purpose

  • 0

I’m making my Perl soft runing as a service on windows.

For this purpose I’m using the Win32::Daemon module to manipulate SCM (service configuration manager) and start/stop my service.

To launch my service, I use the system() perl command.

The command looks like:

START \"title\" /Dc:\\path\\to\\bat\\script\\dir\\ \"script.bat\"

When I launch this command directly from cmd.exe, the title of the process is well set.

When the command is launched through the service I start, the process has an empty title.
Task manager says that the launched command is:

cmd /c ""C:\path\to\script.bat" "

Am I missing something?

note: I’m definitly trying to set a title to my service, because I didn’t find a cleaner way to stop it than launching a “taskkill” command in the stop hook of the service, with the title name as a parameter (don’t know how to catch the PID of the generated process)

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T03:34:25+00:00Added an answer on June 2, 2026 at 3:34 am

    I’m not 100% sure what your issue is, but the title command may help.

    When a cmd process starts in Windows, it gets a default widow title. The DOS “title” command can set the window title to whatever you like.

    The DOS “start” command is used to split (fork?) the command to a new window, which separates it from the calling DOS/cmd window (unless you use the correct start parameters to keep it in the same window). Part of the start command is the optional “title” parameter which sets the window title for you.

    But you mentioned running as a service… services don’t generally have windows or GUIs, so I’m not sure why you’re so interested in the window title.

    In the end, you can put

    title "The title of the window"
    

    in your batch script… or if you’re in a Perl program, doing

    system "title \"Window title\"";
    

    will also work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm making a simple page using Google Maps API 3. My first. One marker
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.