My application starts logging and executes shell commands on startup. The
application runs fine, except when it executes at boot time. In other words
when I make it a "startup" application on my Windows XP box, it does
everything except logging and shell commands. If I execute the application
after Windows XP boots up, then it runs just fine. It seems as if the app is
not getting its inherited functionality at boot time. Any help is appreciated.
Here is the code used:
Shell("regedit /s lockiez1.reg", AppWinStyle.Hide) 'Member of:
Microsoft.VisualBasic.Interaction
Dim file As TextWriter = New StreamWriter("myapp.log", True) 'Member of:
System.IO
file.WriteLine(logMsg & Now)
file.Close()