anyone know the way to get hstart working with this; Code: powershell -command "& $env:temp\merge1.ps1" works no problem straight from the cmd line but I dont want the console to be visible in powershell, or anyone know how to hide the powershell completely?
i think you could use the showwindow api simple asm example: .data winname db "Windows PowerShell",0 .code start: invoke FindWindow,0,addr winname invoke ShowWindow,eax,SW_HIDE ; hide window invoke Sleep,5000 ; 5 sec delay invoke FindWindow,0,addr winname invoke ShowWindow,eax,SW_SHOWNORMAL ; restore window invoke ExitProcess,0 end start
hmm try the example just change the fpath.txt with full path of your script. PS if the power shell window fails to load you must manualy kill the runscipt.exe with taskmgr lol. http://www.fileserve.com/file/WwQBXjV/example.rar
hstart /NOCONSOLE powershell -command "& $env:temp\merge1.ps1" i would think. don't know for sure haven't been using hstart in a while i may be misunderstanding what you are wanting though