To hide the cmd.exe ,i just call bat script in another vbs script, and is placed in the mysql base directory together with that bat script
the content is
Code: Select all
Public Const vbQuote = """"
Set ws = CreateObject("Wscript.Shell")
strPath = Wscript.ScriptFullName
pos = InStrRev(strPath,"\")
strPath=Left(strPath, pos)
batPath = "cmd /c " & vbQuote & strPath & "quick_install_start.bat" & vbQuote
ws.run batPath,,true
in the directory "c:\wxq64\AppData\Roaming\Hpws\FR4000 1.0.3.0\install\E33F8F5\MySql" ,i find my vbs/bat script and other mysql portable files. but it can be executed by double click。 can somebody help me?
the attachmenet is my script file.