Forum Moderators: open
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.