I am using wpi v7.0 which gets run before the desktop loads (RunOnceEx.cmd).
However, I am having an issue when "manually" launching explorer.exe (from the task manager for example, and I would expect the desktop to load), as it seems that explorer.exe just hangs.
I am running on windows xp x64 sp2.
More specifically, I need to run explorer.exe in order to launch a network connection shortcut (.lnk) on the desktop using an autoit script.
During testing, I was not able to get the lnk launched without passing the full path to it as a parameter for explorer.exe.
For example:
CODE
$exe = "explorer.exe"
$lnk = @DesktopDir & "\Shortcut to domain.company.local.lnk"
ShellExecute($exe, $lnk)
$lnk = @DesktopDir & "\Shortcut to domain.company.local.lnk"
ShellExecute($exe, $lnk)
I tried to launch (ShellExecute() and Run() also trying to use @ComSpec) the lnk directly, but none of those worked as expected; I either get an error "The parameter is incorrect" or nothing shows up.
In task manager, when the autoit script runs, i see "explorer.exe*32" running, but when I go to a command prompt and run explorer.exe, I also saw "explorer.exe" (64-bit) running but both processes seemed to just sit and be idle.
Any advice\thoughts\work-arounds?
Is there a way to get wpi launched after the desktop loads even after reboots (RunOnce?) instead of the way it currently loads which is before the desktop?
Thank you very much.