1.

Solve : Can someone tell me how to stop a batch file??

Answer»

I ran this program:

echo off
setlocal
set srcDir=c:\sass
set destDir=c:\css
set lastmod=
pushd "%srcDir%"
for /f "tokens=*" %%a in ('dir /b /od 2^>NUL') do set lastmod=%%a
c:\ruby\bin\sass %srcDir%\%lastmod%.sass > %destDir%\%lastmod%.css


Which watches a directory for a file change and copies it to another directory. However, even after closing the command LINE it still seems to be running in the background.

I just rebooted my computer and its still running... (no command line window is open)

Can someone tlel me how to stop it?


These steps will find out what is running. Also try and take a screenshot of the command window if you can see it.

#1. Open the command prompt. Type in tasklist and press enter. If you see a list of all your processes, continue. If not, reply and say you can't, and we'll work on something else.
#2. Type in this:
tasklist > "%userprofile%\Desktop\tasks.txt"
#3. Open "tasks.txt" on your desktop and post the contents in your next reply.Haha, thanks. I tried that and I couldn't locate the command service.

However, upon further INSPECTION of my task list I realized this software I downloaded (before I tried writing batch files) to watch my folders was actually still running (and running on startup), which is why some action was being performed on these folders despite the fact my script wasn't running.

God I'm such a moron.    Don't call yourself a moron! You solved your problem! The only good way to learn is with experience (take baking SODA and vinegar...if someone told you that together they create gas, would you believe them? If you found it out for yourself you learn what HAPPENS).



Discussion

No Comment Found