KF2
KF2

Reputation: 10171

write desktop application in javascript

I wrote a web application(automation system), i need to alarm user when new mail recived.

I can not write this with c# (win-form) because i have to install .net frame work,so i want to know is any way to write a simple application using java-script or other simple frame work that may you know, to check for new mail and alarm to user in windows ("like a desk app").this is possible?

Updated

So i decide to use vbscript i find a simple example.

Example: The following example demonstrates how to write a simple vbscript to open notepad.exe:

  1. Open Notepad and paste the following code into a new document:

    Set WshShell = WScript.CreateObject("WScript.Shell") Dim exeName Dim statusCode exeName = "%windir%\notepad" statusCode = WshShell.Run (exeName, 1, true) MsgBox("End of Program")

  2. Save the file as Example.vbs (manually change the extension to .vbs)

  3. Double-click Example.vbs to run the program which launches Notepad.exe

how can i get query from remote sql server.is this possible?

Upvotes: 0

Views: 202

Answers (1)

Andy G
Andy G

Reputation: 19367

Windows has a JavaScript compiler jsc.exe which is normally pre-installed that can be used to create standalone code.

How to: Compile JScript Code from the Command Line

It is JScript rather than JavaScript.

jsc.exe is rarely used for standalone scripts so I think you'll struggle to find examples. You would be better off writing VBScript or PowerShell scripts for Windows IMO.

Upvotes: 1

Related Questions