Hi,
I would like to add a custom action to remove a user. I am using the EXE with Working Directory and path given by a formatted.
The command I am giving is:
net user postgres /delete
When I do this a CMD window comes up for a split second. Is there any way to suppress this? I have tried to script it via
Set WshShell = CreateObject("WScript.Shell"):cmds=WshShell.RUN("net user postgres /delete", 0, True):Set WshShell = Nothing
or
cmd /c start /min /c net user postgres /delete
but it is not really working as intended.
Any advise to stop the CMD window from showing at all?
Thanks,
Greg
FOLLOW US
Get the latest news in Application Packaging