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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:18:50+00:00 2026-06-06T19:18:50+00:00

In web projects on my local machine, I’m using a fairly simple Sass setup.

  • 0

In web projects on my local machine, I’m using a fairly simple Sass setup.
In the same folder, I have /scss/style.scss and /css/style.css

So to run Sass while I work I just write this in a Ruby Terminal:

cd "C:\Users\Puppybeard\Documents\Aptana Studio 3 Workspace\Project Title"
sass --watch scss/style.scss:css/style.css

Works fine, but it’s a little cumbersome, so I’m trying to figure out how to do the equivalent with a batch script.
I’ve tried the following, but it’s a complete disaster, and my computer tries to open an infinite amount of Ruby consoles.

cd "C:\Ruby193\bin"
start ruby
cd "C:\Users\Puppybeard\Documents\Aptana Studio 3 Workspace\Project Title"
sass --watch scss/style.scss:css/style.css
exit

I think what I need to do is to start Ruby running in the background, rather than open the Ruby exe. Does anyone know how, or is that even how Ruby works? Obviously, I’m new to Sass, Ruby and batch scripts, so any insight you can give me would be a big help, thanks.


EDIT: I got it working like this

cd "\Ruby193\bin"
sass --watch "C:\Users\Puppybeard\Documents\Aptana Studio 3 Workspace\Project Title\scss\style.scss:C:\Users\Puppybeard\Documents\Aptana Studio 3 Workspace\Project Title\css\style.css"

I think it should be neater, and suspect that sass needs to have it’s $PATH set.


EDIT 2: I set the Path variable for Ruby, using these instructions: http://groups.google.com/group/beginning-rails/browse_thread/thread/1c68665013a60081

In my case, the path I needed to add was C:\Ruby193\bin
Now the only line I need, when I have the script in the root of the web project, is:

sass –watch scss/style.scss:css/style.css

I could keep the part where I change directory to the location of the folders in if I wanted to have something that can run from anywhere on my computer. However, the fact that the script doesn’t specify the project location means I can just copy it into any project where I use the same structure.

Worth the effort? In the long run, probably, yeah.

  • 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-06T19:18:51+00:00Added an answer on June 6, 2026 at 7:18 pm

    Put your original two commands into your batch file. So the content of the .bat file would be:

    cd "C:\Users\Puppybeard\Documents\Aptana Studio 3 Workspace\Project Title"
    sass --watch scss/style.scss:css/style.css
    

    Simple as that. A batch file like this runs each command on each line one after the other, as if you were typing each one individually.

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

Sidebar

Related Questions

I am using two web projects and both using same Database of MS SQL
I have two web application projects (project A and project B) in the same
I have a web project which works fine on my local development machine. I
I'm developing on my local machine using the built in web server that ships
I have created some simple app in Java, and 'deployed' it using Java Web
I have started a new mvc project and clicked on project\properties\web - use local
I have mutipule web projects (please don't ask me why with multipule namespaces within
OK I have two web projects WebProject1 & WebProject2. Both require database connectivity so
I am used to using a Repeater control in conventional ASP.Net web projects. I
I have a local machine (laptop) and a shared Mercurial repository on another machine

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.