javascript - How do I open up Command Prompt and run a CasperJS script via C#? -



javascript - How do I open up Command Prompt and run a CasperJS script via C#? -

solution: rebooted computer , worked. must have not picked on alter path executed before building project.

i have casperjs script need run c#.net visual studio application. can open cmd , run script no problem start > run > cmd, if open cmd through visual studio application, can't run scripts.

here picture.

the 1 on left command prompt initiated application, right other.

sorry image, here link: http://i.stack.imgur.com/kujsg.png

this button does.

private void button1_click(object sender, eventargs e) { system.diagnostics.process.start("cmd.exe"); }

i added casperjs path environment variables , i'm able run script no problem, until utilize visual studio open command prompt, loses path casperjs. ran path command , casperjs there, if run path command in command prompt opened application, not there.

link image: http://i.stack.imgur.com/xtgyq.png

rebooted pc , corrected path.

c# javascript windows visual-studio casperjs

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -