mahon257 Posted November 12, 2008 Share Posted November 12, 2008 If you own a Land Rover, like me, you'll need a regular supply of parts! Many of us have "acquired" the Landrover EPC, on CD Rom. This software usually requires you to set your computer clock to the 1st of Jan 2008 (or another date). This can be a pain - especially if you forget to set the clock back to normal after running the program. So, as I work in IT, I figured it's time I gave something back to this forum, which has helped me on a number of occassions! When you start the program (called a "script") it sets your computer clock to 01/01/2008 12:00hrs. It then starts Microcat. After you close Microcat - the script automatically resets your computer clock back to normal, and closes itself. Oh - one other thing, the last action the script takes it to sync your PC clock with special "time servers" on the internet. If you don't want it to do this - open the script in a text editor - like "Notepad.exe", and follow the instructions in the last few lines in the script. Any questions just post a reply, Have fun! ------------------------------------------------------------ I would have preferred to provide this program, or "script", as an attachment in a ZIP file - but the forum rules are blocking the upload (which is fair enough!) So instead, if you want to use this, you'll have to do a bit of extra work! Bascially, copy/paste the text after the words "start of script", into a text editor like "notepad.exe". Then, in notepad, save the text file as "C:\MCLRE\Run-Microcat.vbs" (assumming that's where you have installed Microcat). The Script was written for Windows XP - but should work on all versions of Windows later than "Windows 2000". To run Notepad, just click "start", "run", then type "notepad.exe" - and click "ok". In future, instead of running the normal shortcut for Microcat - run the script instead (double click it, create a shortcut to it, etc). ------------------------------------------------------------ Start of script (do not copy this line) Option Explicit 'This script is designed to run the Land Rover EPC. 'The basic idea, is to set the system clock to 1st Jan 08, run the EPC, then restore the system clock after. 'Additionaly, you can re-sync your clock with an Internet NTP server.. Dim oFSO, oShell, sNowDate, sNowTime, dStartTime, dEndTime, dDuration, dRealStartTime dim sAppPath, sEPCFileName set oFSO = CreateObject("Scripting.FileSystemObject") Set oShell = CreateObject("Wscript.Shell") sAppPath= Replace(WScript.ScriptFullName, WScript.ScriptName, "") sEPCFileName="mclre.exe" if not oFSO.FileExists(sAppPath & sEPCFileName) then msgbox "Land Rover EPC not found at : " & sAppPath & sEPCFileName & vbcrlf & vbcrlf & "Ensure that the EPC is installed, and that you are running this script from the same Folder as the EPC.",16,"EPC not found" wscript.quit end if 'Capture current Date.. dRealStartTime=now() 'Set Date to 1st Jan 2008: With oShell .Run "%comspec% /c date 01/01/2008" .Run "%comspec% /c time 12:00:00" msgbox "System Date Changed to 01-Jan-2008", 64, "Clock Set:" 'Start a Stopwatch, to capture Duration (to be used to reset clock after EPC closed) dStartTime=now() 'start the EPC here .Run sAppPath & sEPCFileName,1,True 'Start EPC, and force this script to wait until EPC is closed before continuing... 'msgbox "simulate running EPC here..." dEndTime=now() dDuration=dEndTime-dStartTime 'Restore Date to when this script started: sNowDate = FormatDateTime (dRealStartTime + dDuration, vbShortDate) sNowTime = FormatDateTime (dRealStartTime + dDuration, vbLongTime) sNowTime = replace(sNowTime,":",".") .Run "%comspec% /c date " & sNowDate .Run "%comspec% /c time " & sNowTime End With msgbox "Date Restored to " & sNowDate & " " & sNowTime & ", EPC ran for " & FormatDateTime (dDuration, vbLongTime) & " seconds.." 'Update System Clock wth Internet Time Servers. 'Note: software firewalls, like ZoneAlarm may block Internet Time service lookups 'see: http://www.digitalspy.co.uk/forums/showthread.php?p=18540203 'To ignore this next section, simply put an ' before each line... With oShell .Run "%comspec% /c w32tm /config /syncfromflags:manual /manualpeerlist:pool.ntp.org"',tick.usno.navy.mil,tock.usno.navy.mil,time.windows.com" .Run "%comspec% /c w32tm /config /update" .Run "%comspec% /c w32tm /resync /nowait" End With msgbox "System Date re-sync'd with Internet NTP servers - it may take a few seconds for your clock to be updated (assuming your firewall permits Time Server updates (TCP port 123)." 'end of copy/paste here Quote Link to comment Share on other sites More sharing options...
white90 Posted November 12, 2008 Share Posted November 12, 2008 Excellent many thanks Quote Link to comment Share on other sites More sharing options...
TomG Posted November 12, 2008 Share Posted November 12, 2008 Works a treat! Had to alter the date to 12/09/2006 for mine but i'm probably running an oldie version. Quote Link to comment Share on other sites More sharing options...
mickeyw Posted November 12, 2008 Share Posted November 12, 2008 I have the September 2006 version from Green Oval. Has anyone made a more recent one available? Cheers. Quote Link to comment Share on other sites More sharing options...
M&S Posted November 13, 2008 Share Posted November 13, 2008 There is someone on Ebay that might be worth a look, by the name of "tazmanualdevil" whos CD contains the latest RAVE plus Autodata (workshop software) I'm in no way related to or affiliated with the seller. Quote Link to comment Share on other sites More sharing options...
bango690 Posted November 14, 2008 Share Posted November 14, 2008 i have done the above but microcat is still saying that its out of date, i downloaded the file from green oval on the 11 November 2008 what could i do to get it going? Quote Link to comment Share on other sites More sharing options...
western Posted November 16, 2008 Share Posted November 16, 2008 don't forget 'EPC' & 'Microcat' are 2 totally different programs, EPC runs under Windows95 but will work under 98,98SE,XP & Vista --- to run on XP use this method -- http://forums.lr4x4.com/index.php?showtopic=8167 to run on Vista use this method -- http://forums.lr4x4.com/index.php?showtopic=15444 Microcat needs to be installed as per it's instructions. Quote Link to comment Share on other sites More sharing options...
bango690 Posted November 16, 2008 Share Posted November 16, 2008 i already have the epc running propley, but the microcat wont run unless i change the date to 12/09/2006 and wos wondering if i could get the scrypt to do that automaticly? i did find a post on here the other day that works a treat but the prices dont show! Quote Link to comment Share on other sites More sharing options...
mahon257 Posted November 18, 2008 Author Share Posted November 18, 2008 i already have the epc running propley, but the microcat wont run unless i change the date to 12/09/2006 and wos wondering if i could get the scrypt to do that automaticly? i did find a post on here the other day that works a treat but the prices dont show! To get the script to set a different date, just find the line that reads: .Run "%comspec% /c date 01/01/2008" ..and change it to read whatever date you want, i.e. .Run "%comspec% /c date 12/09/2006" Hope that helps... Quote Link to comment Share on other sites More sharing options...
Escape Posted November 19, 2008 Share Posted November 19, 2008 I have the September 2006 version from Green Oval. Has anyone made a more recent one available?Cheers. I have 06-2008 and expect an update soon. If you can figure out a way to get it to you (2CDs), I'll be glad to do so. And a big thanks to Mahon for the script! Quote Link to comment Share on other sites More sharing options...
David Sparkes Posted November 19, 2008 Share Posted November 19, 2008 I have 06-2008 and expect an update soon. If you can figure out a way to get it to you (2CDs), I'll be glad to do so.And a big thanks to Mahon for the script! In the past I have used Megaupload for this sort of stunt. http://www.megaupload.com/ When I used it in Jan 2008, the limit (for free) was 500MB, so I had to split files out of the CD and pass them as separate uploads. Now I see the limit is 1024 MB, so each CD should go as a single upload. Some Hints. Load as separate but simultaneous sessions (multiple Browser instances running at the same time). If loaded using the Megaupload 'Multifile' facility note it is ESSENTIAL that the uploader inserts the (Optional) own email address, because that is the only way the uploader gets told the download url. In both Single file and Multifile instances, the sender can insert the recipients email address (if it is known), and the recipient will be notified automatically the download is ready. They offer a free 'Megaupload Turbo' application. I didn't take advantage of that before, but it might be worth trying, as it improves downloads as well. Note that these files are only available to download for a limited time. If you are making the downloads available to 'anyone' you will have to post the link in an open posting, or via PM to those who ask for it. Please take this post as an 'ask' :-)) Thanks Quote Link to comment Share on other sites More sharing options...
palace Posted March 4, 2010 Share Posted March 4, 2010 i have tried the script and it does reset the date to 2008 but still asks for a dongle what have i missed ? Quote Link to comment Share on other sites More sharing options...
missingsid Posted March 5, 2010 Share Posted March 5, 2010 Brill After a slight mod this work for my version brilliantly. the previous script for this I had was good but did not reset the date. Thanks for this. Marc. Quote Link to comment Share on other sites More sharing options...
Orgasmic Farmer Posted September 28, 2011 Share Posted September 28, 2011 Finally after several variations a script whihc works. Had to change dates to 15.11.2009 in the script but now works spot on and restores date after session. Great. Many thanks to the OP.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.