1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to run jscript script file

Discussion in 'Software' started by akshaysuri_jbp, May 7, 2007.

  1. akshaysuri_jbp

    akshaysuri_jbp Private E-2

    hi everybody
    can anyone tell me how to run/execute jscript script file i have a windows xp service pack 2 i am double clicking the jscript script file but nothing is happening pls help me
     
  2. Kodo

    Kodo SNATCHSQUATCH

    javascript?
    Requires a browser to run in.
     
  3. Mada_Milty

    Mada_Milty MajorGeek

    A jscript as in a .JS file extension?

    Should open with wscript.exe in Windows by default.

    It's possible that the script is written to run transparently (ie. no output to the user). If you were to right-click and select 'Edit', it should open in notepad. This would allow you to post the code so that we could comment further.
     
  4. akshaysuri_jbp

    akshaysuri_jbp Private E-2


    files contains following codes


    //**********************************************************************************
    //** File Name: dialup.js
    //** Summary: SupportSoft HTML Display JavaScript File
    //** Description: This file contains global functions that help create
    //** dial-up routines.
    //**
    //** Copyright SupportSoft Inc. 2003-2004, All rights reserved.
    //**********************************************************************************

    var objDialUp;

    function SdcDialUp()
    {
    function mCreateDUNRasEntry(ConnectionName, areaCode, Phone, User, Password, Attributes, Modem)
    {
    //GetLastError() doesn't seem to populate so we'll return error.
    try {
    this.oSdcDialUp.CreatePPPoARasEntry(ConnectionName, areaCode, Phone, User, Password, Attributes, Modem);
    }
    catch(e){
    sma_log_debug("Error: " + e.description, 1, false, "mCreateDUNRasEntry()");
    return e.description;
    }
    return '';
    }

    function mCreatePPPOERasEntry(ConnectionName, Svc, User, Password, Attributes)
    {
    //GetLastError() doesn't seem to populate so we'll return error.
    try {
    this.oSdcDialUp.CreatePPPoERasEntry(ConnectionName, Svc, User, Password, Attributes);
    }
    catch(e){
    sma_log_debug("Error: " + e.description, 1, false, "mCreatePPPOERasEntry()");
    return e.description;
    }
    return '';
    }

    function mGetRasConnectStatus(ConnectionName)
    {
    var Ret = -1;
    try {
    Ret = this.oSdcDialUp.GetRasConnectStatus(ConnectionName);
    }
    catch(e){
    sma_log_debug("Error: " + e.description, 1, false, "mGetRasConnectStatus()");
    return -1;
    }
    return Ret;
    }

    function mRasConnect(ConnectionName)
    {
    var Ret = false;
    try {
    Ret = this.oSdcDialUp.RasConnect(ConnectionName);
    }
    catch(e){
    sma_log_debug("Error: " + e.description, 1, false, "mRasConnect()");
    return false;
    }
    return Ret;
    }

    function mRasDisconnect(ConnectionName)
    {
    var Ret = false;
    try {
    Ret = this.oSdcDialUp.RasDisconnect(ConnectionName);
    }
    catch(e){
    sma_log_debug("Error: " + e.description, 1, false, "mRasDisconnect()");
    return false;
    }
    return Ret;
    }

    function mGetRasEntries() {
    var Ret = '';
    try {
    Ret = this.oSdcDialUp.GetRasEntries();
    }
    catch(e){
    sma_log_debug("Error: " + e.description, 1, false, "mGetRasEntries()");
    return '';
    }
    return Ret;
    }

    function mDelRasEntry(PhoneBook, ConnectionName) {
    var Ret = false;
    try {
    Ret = this.oSdcDialUp.DelRasEntry(PhoneBook, ConnectionName);
    }
    catch(e){
    sma_log_debug("Error: " + e.description, 1, false, "mDelRasEntry()");
    return false;
    }
    return Ret;
    }

    function mGetRasDevices(devicetype) {
    var Ret = '';
    try {
    Ret = this.oSdcDialUp.GetRasDevices(devicetype);
    }
    catch(e){
    sma_log_debug("Error: " + e.description, 1, false, "mGetRasConnections()");
    return '';
    }
    return Ret;
    }
    function mGetLastError() {
    return this.oSdcDialUp.GetLastError();
    }
    function mGetLastErrorMsg() {
    return this.oSdcDialUp.GetLastErrorMsg();
    }

    try
    {
    this.oSdcDialUp = new ActiveXObject('SPRT.SdcNetCheck'); //the sdcNetCheck provides routines for RAS-dialup activities
    }
    catch(e){
    sma_log_debug("Error: " + e.description, 1, false, "sma_dailup.js");
    };

    this.GetLastError = mGetLastError;
    this.GetLastErrorMsg = mGetLastErrorMsg;
    this.CreateDUNRasEntry = mCreateDUNRasEntry;
    this.CreatePPPOERasEntry = mCreatePPPOERasEntry
    this.GetRasConnectStatus = mGetRasConnectStatus;
    this.RasConnect = mRasConnect;
    this.RasDisconnect = mRasDisconnect;
    this.GetRasEntries = mGetRasEntries;
    this.GetRasDevices = mGetRasDevices;
    this.DelRasEntry = mDelRasEntry;
    }

    objDialUp = new SdcDialUp();


    Actually i want to create a pppoe dialer in winxp using windows script or java script pls help me
     

Share This Page

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds