windows - Open cmd, change directory and execute command -
i'm trying write simple batch file initialize tools need on windows startup. i've @ moment:
@echo off start /d "c:\program files\sublime text 3" sublime_text.exe start cmd.exe /k cd /d "d:xampp/htdocs/webshop" what i'd execute command compass watch 1 time directory has changed.
i tried start cmd.exe /k cd /d "d:xampp/htdocs/webshop" /k "compass watch" refers cd command , throws me error message (the scheme cannot find path specified).
any suggestions?
edit
to clarify need:
open consolecd relevant directory execute command compass watch (in directory) i manually typing in commands console listed above. i'd have simple .bat file 1 click.
you state in comments don't need separate interpreter. in case believe can this:
@echo off start /d "c:\program files\sublime text 3" sublime_text.exe start /d d:\xampp\htdocs\webshop compass watch windows batch-file
No comments:
Post a Comment