{"id":11563,"date":"2023-01-29T08:39:52","date_gmt":"2023-01-29T16:39:52","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=11563"},"modified":"2023-01-29T08:39:52","modified_gmt":"2023-01-29T16:39:52","slug":"run-service-after-start","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/run-service-after-start\/","title":{"rendered":"Q&#038;A: How do I Launch a Service after AlwaysUp Starts my Application?"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"\/blog\/images\/qa-launch-service.webp\" style=\"margin-bottom:20px;\" title=\"How do I Launch a Service after AlwaysUp Starts Google Drive\" alt=\"How do I Launch a Service after AlwaysUp Starts Google Drive\" border=\"0\" width=\"380\" height=\"160\" \/><\/div>\n<div class=\"blog-qa-question-box\">\n<img loading=\"lazy\" decoding=\"async\" class=\"no-lazy-load\" src=\"https:\/\/cdn.coretechnologies.com\/images\/quotes-transparent-21x21.webp\" width=\"21\" height=\"21\" \/>&nbsp;&nbsp; I&#8217;m interested in purchasing your <a href=\"\/products\/AlwaysUp\/\">AlwaysUp application<\/a> but would like some further information first if you don&#8217;t mind.<\/p>\n<p>My main goal is to run <a href=\"https:\/\/www.google.com\/drive\/download\/\" target=\"_blank\" rel=\"noopener\">Google Drive for desktop<\/a> as a service. But there is an existing Windows Service that I need to run after Google Drive has launched. Is it possible to use AlwaysUp to start it after Google Drive has started?<\/p>\n<p align=\"right\">&mdash; Shaheed<\/p>\n<\/div>\n<p>Hi Shaheed, thanks for trying AlwaysUp.<\/p>\n<p>The answer to your question is yes. Please follow these steps to setup Google Drive and your other service in AlwaysUp.<\/p>\n<h2 class=\"blog-caption-numbered\">1. Install Google Drive as a service with AlwaysUp<\/h2>\n<p>As described in our <a href=\"\/products\/AlwaysUp\/Apps\/InstallGoogleDriveDesktopWindowsService.html\">step-by-step tutorial<\/a>, the new AlwaysUp Application Advisor supports Google Drive for desktop:<\/p>\n<div align=\"center\"><a href=\"\/products\/AlwaysUp\/Apps\/application-advisor-select-google-drive.png\" class=\"zoomPopup\" title=\"Application Advisor supports Google Drive for desktop\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/products\/AlwaysUp\/Apps\/application-advisor-select-google-drive.png\" title=\"Application Advisor supports Google Drive for desktop (click to enlarge)\" alt=\"Application Advisor supports Google Drive for desktop\" border=\"0\" \/><\/a><\/div>\n<p>Instead of leaving you to figure out and apply the best settings to support background file synchronization, simply click through the Advisor&#8217;s straightforward prompts to create your Google Drive service &mdash; <b>in less than 2 minutes<\/b>.<\/p>\n<p>At the end of the process, your Google Drive for desktop will be installed as a 24\/7 Windows Service. Afterwards, test and make sure that the new service syncs your files as expected.<\/p>\n<h2 class=\"blog-caption-numbered\">2. Have AlwaysUp start the other service after it runs Google Drive<\/h2>\n<p>Now that Google Drive is set up, let&#8217;s turn our attention to starting the other service at the right time.<\/p>\n<p>Please:<\/p>\n<ol style=\"margin-bottom:24px\">\n<li>\n<p>Edit your Google Drive for desktop entry in AlwaysUp.<\/p>\n<\/li>\n<li>\n<p>Move to the <b>Automate<\/b> tab.<\/p>\n<\/li>\n<li>\n<p>Check the <b>When the application starts&#8230;<\/b> box at the top.<\/p>\n<\/li>\n<li>\n<p>Enter the following command (which will start your service):<\/p>\n<blockquote><p>C:\\Windows\\System32\\net.exe START &quot;&lt;Service-Name&gt;&quot;<\/p><\/blockquote>\n<p>where &lt;Service-Name&gt; is the <a href=\"\/WindowsServices\/FAQ.html#FindServiceName\">name of your service<\/a>. Note that the quotes around the name are required if it contains a space.\n<\/li>\n<li>\n<p>In the <b>Every<\/b> section, specify when the service should be started.<\/p>\n<\/li>\n<li>\n<p>Check the <b>Only<\/b> option and set the value to 1 (because we only need to start the service once).<\/p>\n<\/li>\n<li>\n<p>Finally, save your settings.<\/p>\n<\/li>\n<\/ol>\n<p>For example, if you want to start the Print Spooler service (named &#8220;Spooler&#8221;) 30 seconds after Google Drive starts, your Automate tab should look like this:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/alwaysup-automate-net-start.png\" class=\"zoomPopup\" title=\"Use AlwaysUp to automate NET START\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/alwaysup-automate-net-start.png\" title=\"Use AlwaysUp to automate NET START (click to enlarge)\" alt=\"Use AlwaysUp to automate NET START\" border=\"0\" \/><\/a><\/div>\n<h2 class=\"blog-caption-numbered\">3. Change your service to start manually<\/h2>\n<p>Is Windows starting your service when the computer boots? If so, you may want to change that because with step 2 in place, AlwaysUp will start the service when it&#8217;s needed.<\/p>\n<p>To prevent Windows from starting your service at boot:<\/p>\n<ol style=\"margin-bottom:24px\">\n<li>\n<p>Start the <a href=\"\/blog\/windows-services\/essential-tools-windows-services-msc\/\">Services application<\/a> (run &#8220;services.msc&#8221; to launch it)<\/p>\n<\/li>\n<li>\n<p>Scroll the list to find your service.<\/p>\n<\/li>\n<li>\n<p>Double-click the entry to bring up the service&#8217;s properties.<\/p>\n<\/li>\n<li>\n<p>In the <b>Startup type<\/b> field, select <b>Manual<\/b>. It should look like this:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/windows-service-set-manual-start.png\" class=\"zoomPopup\" title=\"Set the service's startup type to Manual\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/windows-service-set-manual-start.png\" title=\"Set the service's startup type to Manual (click to enlarge)\" alt=\"Set the service's startup type to Manual\" border=\"0\" \/><\/a><\/div>\n<\/li>\n<li>\n<p>Save your changes.<\/p>\n<\/li>\n<\/ol>\n<p>And that&#8217;s it!<\/p>\n<p>Next time your computer boots:<\/p>\n<ol style=\"margin-bottom:24px\">\n<li>\n<p>Windows will automatically start AlwaysUp<\/p>\n<\/li>\n<li>\n<p>AlwaysUp will start Google Drive<\/p>\n<\/li>\n<li>\n<p>And after a few seconds\/minutes (whichever you specified), AlwaysUp will start your service.<\/p>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 30px\">\nAll the best.<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/run-batch-file-once-a-day\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: How Do I Run My Batch File Once A Day With AlwaysUp?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/run-batch-file-once-daily-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: How Do I Run My Batch File Once A Day With AlwaysUp?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/import-windows-service-applications\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Moving your AlwaysUp Applications\/Services? Easily Import Them All at Once\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/alwaysup-bulk-import-logo-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Moving your AlwaysUp Applications\/Services? Easily Import Them All at Once<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/reconnect-network-drives-feature\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"AlwaysUp Feature Spotlight: Automatically Reconnect Network Drives\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/connect-network-drives150x150.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">AlwaysUp Feature Spotlight: Automatically Reconnect Network Drives<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp; I&#8217;m interested in purchasing your AlwaysUp application but would like some further information first if you don&#8217;t mind. My main goal is to run Google Drive for desktop as a service. But there is an existing Windows Service that &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/run-service-after-start\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":11565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[26,296,40,85,127],"class_list":["post-11563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-alwaysup","tag-alwaysup-tag","tag-alwaysup-automate-tab","tag-automation","tag-google-drive","tag-qa"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/11563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=11563"}],"version-history":[{"count":13,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/11563\/revisions"}],"predecessor-version":[{"id":11788,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/11563\/revisions\/11788"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/11565"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=11563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=11563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=11563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}