edmoncu Posted September 4, 2004 Share Posted September 4, 2004 Hi all,Its my first time posting at the progarmming section here. Just wanna know though if it would be possible for a javascript or vbscript to:- get the system year and save it to a variable- change the system year to a couple years beyond the current- run a routine (like a program)- restore the original system yearWhat i wanna know the most though is the one i bold'ed out.Hope you could help me with these. Thanks in advanced. Link to comment Share on other sites More sharing options...
edmoncu Posted September 4, 2004 Author Share Posted September 4, 2004 was able to do the same via batch file...@echo offsetlocal:this part gets the current system date, removes excess characters and saves the results to a temporary filedate/t>temp.txtset filename=temp.txtset /p firstline= < "%filename%"set IDENTIFIER=%firstline:~4,10%echo %IDENTIFIER%>temp.txt:this part modifies the date and runs a set of commands including running an installationdate 05/28/2019start /wait "setup.exe /silentmode"start /wait taskkill.exe /F /IM tsr1.exe /IM tsr2.exe:this part restores the date to the original state and removes the temporary filedate<temp.txtdel temp.txt /f /s /qendlocalanyhow, im still open to other approach though, like javascript or vbscripting.thanks in advanced. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now