» An ultimate catalog of computer data
Forum posts for smss.exe
Subprocess.Popen() : hide the cmd shell
I am trying to call an executable at startup, which will call another executable itself. For the first part, I simply added the path to the executable to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun, which works, my executable is called at startup.
The latter contains, among others, these lines :
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
startupinfo.wShowWindow = subprocess.SW_HIDE
proc = subprocess.Popen(command, startupinfo=startupinfo)
However, a command shell (cmd) pops when the computer starts. Everything works fine, but it is visible instead of hidden... So basically, how do I hide this command shell ?
When using ProcessExplorer, I have the following hierarchy :
+ System
|_ Interrupts
|_ smss.exe
|_ some processes...
+ explorer.exe
|_ some processes...
|_ MYSCRIPT.EXE
Here is the sequence I try to achieve :
I create an ISO file containing all the Python executable I want to run on the VM. One of them (master.exe) calls the others.
I create a VM which automatically mount the latter
The VM, which was prepared, has a scheduled task which calls D:master.exe
master.exe (among other tasks which are not our concern here) adds the value D:myscript.exe to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun
The VM reboots
D:myscript.exe is run (and it works fine and as attended), but it does run in a command prompt, which I would like to be invisible.
View complete forum thread with replies
Other posts related to smss.exe
See Related Forum Messages: Follow the Links Below to View Complete Thread
Can't list all process on windows 7 64 bit
C# Kill all processes not essential to running Windows
Geting the file size of a system application on windows in C++
how to compile to reduce memory /STACK doesn't seem to change anything?
custom search bar on my custom homepage
Strange character in textoutput when piping from tasklist command WIN7
Replacing winlogon.exe in windows embedded
Can a wmic processes table (within the command prompt window) be sorted by a value?
Subprocess.Popen() : hide the cmd shell