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 3939808
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:20:36+00:00 2026-05-20T00:20:36+00:00

This is a noob question at its best but Google isn’t finding what I

  • 0

This is a noob question at its best but Google isn’t finding what I need.

I have a ruby script that I need to fire off via task scheduler. I thought I did it right by using the following:

cmd /k ruby test.rb

This works when starting the .bat file from the folder. However, if it runs from taskeng.exe it fails because its looking in my system32 folder. I don’t want it to run from system32 so how do i format this to run from say, c:/dev/

Again, sorry for the extremely noob question.

  • 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-05-20T00:20:36+00:00Added an answer on May 20, 2026 at 12:20 am

    You can leave out cmd of that and just use

    ruby test.rb
    

    or rather (in your case):

    ruby C:\Users\Foo\test.rb
    

    or something like that. Giving the complete path to the script usually helps in finding it 😉

    In any case, if you need the working directory you can set it in the scheduled task itself. Something akin to the following:

           enter image description here

    Likewise, if you actually need cmd in there. Just fill out the Start in field and you have a working directory.

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

Sidebar

Related Questions

This is a bit of a noob question but what do I need to
Pardon me, this really is a noob question but please understand that I do
I feel noob asking this question but it seems that I cant find the
This is a painfully noob question, but I have to ask it. I want
This is a bit noob question but.. Its happens sometimes to everybody. I never
Ok this is kind of embarassing but I just have a rather noob question.
I know this may be a noob question, but it's bugging the heck out
Apologies if this is a slightly noob question, but looking to clarify my thoughts
i think this is a bit of a noob question, but here goes. I
This is a question from a Java noob. I have eclipse open (JRE 1.6),

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.