Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Difference between WScript and CScript

Reply
Thread Tools

Difference between WScript and CScript

 
 
capt edgar
Guest
Posts: n/a
 
      01-07-2010
Hi there

what is the difference between WScript and a CScript language.
Where can u find good tutorial for CScript on the internet.

I have tried googling it and it comes back saying Javascript arent
Javascript something for web development. i'm after window scripting

newbie here. please advice

regards
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      01-07-2010
capt edgar wrote:

> what is the difference between WScript and a CScript language.


Is there anything like a "WScript language" or a "CScript language"? I
don't think so.

Windows Script Host has two command line apps, one called "wscript", one
called "cscript". Both allow you to run programs in JScript or VBScript
or other active scripting language implementations, the only difference
being that stuff like
WScript.Echo("foo");
when executed with "wscript" (e.g. wscript file.js) displays a dialog
window whilst the same execution with "cscript" (cscript file.js) writes
to the console window you are running the command in.

See http://msdn.microsoft.com/en-us/libr...1b(VS.85).aspx, which
says:
"The WScript command opens separate windows for output, whereas the
CScript command sends output to the Command Prompt window from which it
was initiated."


--

Martin Honnen
http://msmvps.com/blogs/martin_honnen/
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      01-07-2010
capt edgar wrote:
^^^^^^^^^^
Who?

> what is the difference between WScript and a CScript language.


Those are _not_ different programming languages, see below.

> Where can u find good tutorial for CScript on the internet.


You could start with checking the vendor's Web site,
<http://www.microsoft.com/>.

> I have tried googling it and it comes back saying Javascript arent
> Javascript something for web development.


You are not making sense. When I search with Google for "wscript cscript",
the first result is
<http://msdn.microsoft.com/en-us/library/xazzc41b%28VS.85%29.aspx>
which says what both are and what is the difference between them:

| Running Scripts from Windows or a Command Prompt
|
| Windows Script Host enables you to run scripts from Windows or at a
| command prompt.
|
| Script Hosts
|
| The WScript command opens separate windows for output, whereas the
| CScript command sends output to the Command Prompt window from which
| it was initiated.

> i'm after window scripting


Did you mean _Windows_?

> newbie here. please advice


Please read <http://jibbering.com/faq/#posting> pp., including
<http://www.catb.org/~esr/faqs/smart-questions.html>.


PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie - returned values from cscript.exe Rich Python 3 01-26-2007 04:32 PM
wmi providers and cscript.exe Anthony LaMark Windows 64bit 3 01-26-2006 06:57 AM
Javascript and CScript Sandeeo Javascript 1 10-07-2005 12:36 PM
Difference between bin and obj directories and difference between project references and dll references jakk ASP .Net 4 03-22-2005 09:23 PM
Aspnet_wp.exe process locks internet explorer/ any process utilizing windows scripting (cscript) Robert W. Eckert ASP .Net 4 10-05-2004 10:39 PM



Advertisments