execute simple cmd line hidden without file
Posted: 21 Feb 2020 09:04
Hi,
I recently use a software that can run/open a program. It accept a 1) program name e 2) parameters to pass at program name.
I used this for simple dos command using the command dos shell cmd.exe in this mode
Name : cmd.exe
Param: /c "...……………"
But this method open a black cmd windows and this is not a behavior that i want.
I don't want use files or other external software for this.
I have found methods for run hidden a file batch https://superuser.com/questions/62525/r ... hidden-way
but i don't want use a file.
I have found also a method for execute a dos command form vbscript https://stackoverflow.com/questions/546 ... m-vbscript
but i not know how to merge this method. If possible...
I have also found that mshta.exe can execute vbscript/jscript with a single line of code but i don't know if this is usable for my scope. viewtopic.php?t=5311 (this cover jscript)
Einstein1969
I recently use a software that can run/open a program. It accept a 1) program name e 2) parameters to pass at program name.
I used this for simple dos command using the command dos shell cmd.exe in this mode
Name : cmd.exe
Param: /c "...……………"
But this method open a black cmd windows and this is not a behavior that i want.
I don't want use files or other external software for this.
I have found methods for run hidden a file batch https://superuser.com/questions/62525/r ... hidden-way
but i don't want use a file.
I have found also a method for execute a dos command form vbscript https://stackoverflow.com/questions/546 ... m-vbscript
but i not know how to merge this method. If possible...
I have also found that mshta.exe can execute vbscript/jscript with a single line of code but i don't know if this is usable for my scope. viewtopic.php?t=5311 (this cover jscript)
Einstein1969