Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Disk Start.vbs - No database on startup

Featured Replies

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 

.

  • 4 months later...

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 MPG

letter=Asc("c")

while fso.DriveExists(Chr(letter)+":")

letter=letter+1

wend

 

' Build string to display

str1 = "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 & str3

s=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 best

Ric :)

  • 2 weeks later...

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 best

Ric :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.