473,467 Members | 1,303 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Javascript and CScript

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
1 12114


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Dr John Stockton | last post by:
The following DOS prompt command line, in a Win98 DOS box, cscript //nologo ~tmp.js executes file ~tmp.js as javascript/Jscript. The following batch file, similarly run, executes the same....
9
by: Vladimir Veytsel | last post by:
Please find at the link below samples of JavaScript programming techniques along with several useful fully-functional JavaScripts. http://www.davar.net/INTERNET/JAVA-SCR/JAVA-SCR.HTM ...
9
by: MStepansky | last post by:
Whats the difference between Javascript and Java3D? I mean can Javascript do like Java3D can? Or is Java3D on top of Javascript (the core, if thats what it is)? Then I should learn Javascript...
3
by: Tomasz Chmielewski | last post by:
I have a program written in JavaScript. I start it under Windows with "cscript program.js". I would like to modify it, but unfortunately, I don't know JavaScript much. So I imagined this...
11
by: RC | last post by:
I wrote many JavaScripts, they can only run in a browser (Netscape, IE, Firefox, etc.) I am wonder how can I run the JavaScript in the command line (UNIX/LINUX, Windows)? Similar we can run Perl,...
3
by: chakriroxx | last post by:
hi all, i want to run some javascript file from command line. On searching the net i came to know that we can do it by using cscript.exe or with wscript.exe. 1. can some one provide me some...
4
by: shailendra deshpande | last post by:
right now i have only pain html page.and i want to send email through it using javascript plz. anybody tell me how to send email from plain html page using javascript. thanks in advance ...
84
by: Patient Guy | last post by:
Which is the better approach in working with Javascript? 1. Server side processing: Web server gets form input, runs it into the Javascript module, and PHP collects the output for document prep....
76
by: lorlarz | last post by:
Crockford's JavaScript, The Good Parts (a book review). This shall perhaps be the world's shortest book review (for one of the world's shortests books). I like Douglas Crockford (because I am a...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.