Click here to Skip to main content
15,887,027 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Adding two numbers together? Pin
MallardsReach26-Jan-18 6:37
MallardsReach26-Jan-18 6:37 
GeneralRe: Adding two numbers together? Pin
Eddy Vluggen26-Jan-18 8:04
professionalEddy Vluggen26-Jan-18 8:04 
GeneralRe: Adding two numbers together? Pin
MallardsReach26-Jan-18 8:45
MallardsReach26-Jan-18 8:45 
GeneralRe: Adding two numbers together? Pin
Eddy Vluggen26-Jan-18 9:40
professionalEddy Vluggen26-Jan-18 9:40 
GeneralRe: Adding two numbers together? Pin
MallardsReach26-Jan-18 10:07
MallardsReach26-Jan-18 10:07 
GeneralRe: Adding two numbers together? Pin
Eddy Vluggen26-Jan-18 11:27
professionalEddy Vluggen26-Jan-18 11:27 
QuestionMaking software, that counts your fold count in a row (PokerStars). Pin
Krišjānis Strods22-Jan-18 15:05
Krišjānis Strods22-Jan-18 15:05 
QuestionInstalling mysql silently and configure mysql using Pin
Osioghole Clifford19-Jan-18 16:23
Osioghole Clifford19-Jan-18 16:23 
I have been working with vb.net but I'm new to vbscript. Please can someone help me out.

I'm try to code vbscript to can help me to silently install mysql, install mysql service and setup root password. below are my code:

echo off
cls
set objShell=wscript.createObject("wscript.shell")
Wscript.Echo "Starting Install..."

set mysql_msi="C:\Mysql\mysql-essential-6.0.10-alpha-win32.msi"
set mysql_svname=MySQL
set mysql_odbc="C:\Mysql\mysql-connector-odbc-3.51.27-win32.msi"
set mysql_gui="C:\Mysql\mysql-gui-tools-5.0-r17-win32.msi"
set mysql_datadir="C:\Documents and Settings\All Users\Application Data\MySQL\MySQL Server 6.0\data"
set mysql_data2="C:\Program Files\MySQL\MySQL Server 6.0\data"
set mysql_cmd="GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mysql' WITH GRANT OPTION;"
set mysql_inst="msiexec /i %mysql_msi% /qn"

objShell.Run(mysql_inst)
Wscript.Echo "MySQL Version 6.0.7 installed..."
rem md %mysql_data2%

objShell.Run("C:\Program Files\MySQL\MySQL Server 6.0\bin\mysqlinstanceconfig.exe" -i -q ServiceName=MySQL RootPassword=mysql ServerType=DEVELOPMENT DatabaseType=MYISAM Port=3306 RootCurrentPassword=mysql)
Wscript.echo "MySQL Instance Configured...Service started..."

rem Uncomment next line to allow root access from any pc...
"C:\Program Files\MySQL\MySQL Server 6.0\bin\mysql.exe" -uroot -pmysql -e %mysql_cmd%

msiexec /qn /i %mysql_odbc% /L* C:\MSI-MySQL-ODBC-Log.txt
echo ODBC Connector installed...

msiexec /qn /i %mysql_gui% /L* C:\MSI-MySQL-GUI-Log.txt
Wscript.Echo "MySQL GUI Tools installed..."

echo on

explorer "C:\Program Files\MySQL\MySQL Server 6.0\bin"
GeneralRe: Installing mysql silently and configure mysql using Pin
PIEBALDconsult19-Jan-18 16:49
mvePIEBALDconsult19-Jan-18 16:49 
Questionhow can i create a vb project to glow the light of logic gate output? Pin
Member 1362988617-Jan-18 23:14
Member 1362988617-Jan-18 23:14 
AnswerRe: how can i create a vb project to glow the light of logic gate output? Pin
Richard MacCutchan17-Jan-18 23:34
mveRichard MacCutchan17-Jan-18 23:34 
QuestionHow to reference MS Access 2016 for use with DoCmd, etc. Pin
Johan Hakkesteegt12-Jan-18 3:20
Johan Hakkesteegt12-Jan-18 3:20 
AnswerRe: How to reference MS Access 2016 for use with DoCmd, etc. Pin
Richard Deeming12-Jan-18 3:38
mveRichard Deeming12-Jan-18 3:38 
GeneralRe: How to reference MS Access 2016 for use with DoCmd, etc. Pin
Johan Hakkesteegt14-Jan-18 20:20
Johan Hakkesteegt14-Jan-18 20:20 
GeneralRe: How to reference MS Access 2016 for use with DoCmd, etc. Pin
Richard Deeming15-Jan-18 7:50
mveRichard Deeming15-Jan-18 7:50 
GeneralRe: How to reference MS Access 2016 for use with DoCmd, etc. Pin
Johan Hakkesteegt15-Jan-18 20:08
Johan Hakkesteegt15-Jan-18 20:08 
GeneralRe: How to reference MS Access 2016 for use with DoCmd, etc. Pin
Johan Hakkesteegt16-Jan-18 3:52
Johan Hakkesteegt16-Jan-18 3:52 
GeneralRe: How to reference MS Access 2016 for use with DoCmd, etc. Pin
Mycroft Holmes16-Jan-18 20:23
professionalMycroft Holmes16-Jan-18 20:23 
GeneralRe: How to reference MS Access 2016 for use with DoCmd, etc. Pin
Johan Hakkesteegt16-Jan-18 21:02
Johan Hakkesteegt16-Jan-18 21:02 
AnswerRe: How to reference MS Access 2016 for use with DoCmd, etc. Pin
Ash_savvy2-Feb-18 18:30
Ash_savvy2-Feb-18 18:30 
QuestionCan you include properties from a common class (Solved) Pin
mo14929-Jan-18 3:25
mo14929-Jan-18 3:25 
QuestionNeed help with date to date calculation of a total of different rows Pin
mokhtar_one5-Jan-18 23:39
mokhtar_one5-Jan-18 23:39 
QuestionRe: Need help with date to date calculation of a total of different rows Pin
Maciej Los8-Jan-18 7:11
mveMaciej Los8-Jan-18 7:11 
AnswerRe: Need help with date to date calculation of a total of different rows Pin
mokhtar_one8-Jan-18 22:30
mokhtar_one8-Jan-18 22:30 
AnswerRe: Need help with date to date calculation of a total of different rows Pin
Maciej Los8-Jan-18 22:43
mveMaciej Los8-Jan-18 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.