Marshy Posted November 15, 2007 Report Share Posted November 15, 2007 Hi guys,This is just a quick note that there is a small mistake in the Disk Start.vbs regarding starting/stopping database support.The section t=MsgBox("Start the MySQL Database Server?", vbYesNo + vbQuestion, "Database Support") If intDoIt = vbNo Then m="" Else m=" mysql" End If should be t=MsgBox("Start the MySQL Database Server?", vbYesNo + vbQuestion, "Database Support") If t = vbNo Then m="" Else m=" mysql" End If . Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted November 16, 2007 Report Share Posted November 16, 2007 Oh Thanks. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
Ric Posted April 1, 2008 Report Share Posted April 1, 2008 The following is cosmetic I have added auto drive detect see lines in bold: ' Name: Start MS-DOS File ' Created By: The Uniform Server Development Team' Edited Last By: Olajide Olaolorun (empirex)' Comment: Re-Arranged everything to look nicely. ' To Developers: Added the MySQL start option.' MPG: Added auto drive detect Dim WSHShell, dir, fso, f1, letter Set fso = CreateObject("Scripting.FileSystemObject") Set WSHShell = WScript.CreateObject("WScript.Shell") 'Locate next available drive letter -- Added MPGletter=Asc("c")while fso.DriveExists(Chr(letter)+":")letter=letter+1wend ' Build string to displaystr1 = "Use free drive found click OK or" & vbCR str2 = "Specify a Disk Drive letter then click OK" & vbCR str3 = "Note: To abort click Cancel"str4 = str1 & str2 & str3s=InputBox( str4 ,"Server Disk",UCASE(Chr(letter))) If s = "" Then WScript.Quit End If s=mid(s,1,1) t=MsgBox("Start the MySQL Database Server?", vbYesNo + vbQuestion, "Database Support") If t = vbNo Then m="" Else m=" mysql" End If WSHShell.run "Server_Start.bat "&s&m,0,0 WScript.sleep(1000) Background to the above:http://center.uniformserver.com/batch_file...tch_files2.html All the bestRic Quote Link to comment Share on other sites More sharing options...
Ric Posted April 15, 2008 Report Share Posted April 15, 2008 I have hacked the above code a little more only to discover that the above will not work! I believe incorrect parameters are being passed and a minor problem with Server_Start.bat the following page will clarify this! http://center.uniformserver.com/us_35_known_bugs/intro.html All the bestRic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.