How to use VBScript to open notepad and paste current date in DDMMYYYY format?
When I use the below code, I get the output in DD/MM/YYYY format. I want it in DDMMYYYY format.
set WshShell = WScript.CreateObject("WScript.Shell")
call WshShell.Run("%windir%\system32\notepad.exe")
Dim aDate
aDate = Date()
WScript.Sleep 4000
WshShell.SendKeys aDate
Could you guys please help me on this one?