Sub Main()
If Command$ <> "" Then Open "c:\apps\exelog.txt" For Append As #1 Print #1, Command$ & " " & CStr(Now) Close #1 Call Shell(Command$, vbNormalFocus) End If End End Sub 'Cambi nel Registro 'I cambi nel registro sono: HKEY_CLASSES_ROOT\exefile\shell\open\command to: "C:\exewrap.exe" "%1" %* HKEY_CLASSES_ROOT\lnkfile\shell\open\command to: "C:\exewrap.exe" "%1" %* HKEY_CLASSES_ROOT\piffile\shell\open\command to: "C:\exewrap.exe" "%1" %* HKEY_CLASSES_ROOT\batfile\shell\open\command to: "C:\exewrap.exe" "%1" %* HKEY_CLASSES_ROOT\comfile\shell\open\command to: "C:\exewrap.exe" "%1" %* 'Cio' che accade e' che il programma, invece di girare direttamente, 'Windows chiama la nostra utility, che registra il nome del file e 'la data, e poi chiama il programma. |