By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

Javascript and CScript

P: n/a
Can I execute javascript file with CScript.exe under windows like we
use VBScript ? If yes, can someone give post an example.

Thanks
Sandeep

Oct 7 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a


Sandeeo wrote:
Can I execute javascript file with CScript.exe under windows like we
use VBScript ?
Yes.
If yes, can someone give post an example.


HelloWorld.js has content

WScript.Echo('Kibology for all.');

Run with
cscript HelloWorld.js
from the command line.

Docs are here:
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsoriWindowsScriptHost.asp>
They are also available for download.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 7 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.