vbscript - Hide Command Prompt -
i writing visual basic script file execute command line. script works, problem when the command line executed, cmd.exe
remains open. execute command line without cmd.exe
staying open. okay flashing second , disappearing, not want remain. how can rewrite program command prompt can still thing without showing up? here's code existing program. using script schedule backup development build of duplicati 2.0. security reasons, have removed part of command starts backup.
dim shell set shell = createobject("wscript.shell") shell.run "cmd.exe /c cd c:\program files (x86)\duplicati"
if script posted code, then
dim shell set shell = createobject("wscript.shell") shell.currentdirectory = "c:\program files (x86)\duplicati"
should same without having run cmd
Comments
Post a Comment