Forum Moderators: open

Message Too Old, No Replies

Newbie requires a little help please.

         

ipbr21054

2:36 pm on Mar 14, 2006 (gmt 0)

10+ Year Member



Hi i am new to scripts etc and would like a little help please.
I have been using a programme that now requires a update but updates are no longer available as the programme is now discontinued.
If i change my date on the pc to last month etc the programme works fine without any pop up messages etc.
The programme still works ok but just want to run it without the pop up messages.
What i would like to do is to run a script so it starts the programme thus thinking it is last month etc.
I have this script but it is not 100% in its workings,as it starts the programme then the screen goes black/refreshes then loads again and sometimes up pops the update message.

If anyone can advise how to change it so it just runs correctly without the black screen/loading twice or would like to compose a new small script i would be most gratefull

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 your time in reading this post.

ipbr21054

3:43 pm on Mar 14, 2006 (gmt 0)

10+ Year Member



Sorry forgot to mention a script that would just tell the programme that it is say january 2006 all the time would do fine but not sure how to write it.

cheers