Results 1 to 1 of 1

Thread: I have a script that need a slight alteration please

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2006
    Posts
    1

    I have a script that need a slight alteration please

    I am using this script as the programme it runs need an update but updates are no longer available.

    Basically if i run the programme from the exe icon up pops a message telling me to update.

    If i put my pc`s date back a month if works 100%.

    Can this script be modified to just let the programme think it is say January 2006 all the time ?

    Otherwise the script in question loads the programme then the screen goes black/refreshes then loads the programme again.This is why it needs to be modified etc.

    I would like it just to say January 2006 if possible.

    var d, s, command, dos_com, option, appl;
    appl = "epcmc.exe";
    d = new Date();
    s = d.getDate() + ".";
    s += (d.getMonth()+1) + ".";
    option = s + "1999";
    s += d.getFullYear();
    var WshShell = WScript.CreateObject("WScript.Shell");
    command = "%COMSPEC% /c ";
    dos_com = "date ";
    WshShell.Run (command + dos_com + option, 0);
    WshShell.Run (appl);
    WScript.Sleep (3000);
    option = s;
    WshShell.Run (command + dos_com + option, 0);

    Thanks very much for reading this post.
    Last edited by IPBR21054; Mar 14th, 2006 at 10:38 AM. Reason: forgit the script

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width