This repository has been archived on 2024-12-02. You can view files and clone it, but cannot push or open issues or pull requests.
AbetoArmarios_Web/Source/Disk Start.vbs
2007-06-18 10:53:18 +00:00

30 lines
1021 B
Plaintext

' 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.
Dim WSHShell, dir, fso, f1
Set fso = CreateObject("Scripting.FileSystemObject")
Set WSHShell = WScript.CreateObject("WScript.Shell")
' Uncoment next line to ask about virtual disk for server (useful for CD or USB stick distributions)
s=InputBox("Specify a Disk Drive for the Server to use... (one character please)","Server Disk","W")
If intDoIt = vbCancel Then
WScript.Quit
End If
s=mid(s,1,1)
t=MsgBox("Start the MySQL Database Server?", vbYesNo + vbQuestion, "Database Support")
If intDoIt = vbNo Then
m=""
Else
m=" mysql"
End If
WSHShell.run "Server_Start.bat "&s&m,0,0
WScript.sleep(1000)
' --- If you do not want to open default browser at server start - Not needed, Commented
'WSHShell.run "udrive\home\admin\www\redirect.html"