0

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?

2
  • The .Net Framework is included with Windows. Commented Jul 21, 2013 at 15:57
  • IIRC, XP comes with .Net 1.0 or 1.1. Commented Jul 22, 2013 at 3:03

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

3 Comments

is it possible to get query from sql db with vbscript.see my edit
I don't know much about connecting to a remote database with a script. I assume that you need to create a DSN and you may have to configure FireWall settings. link.
This is JScript.Net. You can also use C#.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.