Posted by:
namupala
(---.tkyoac00.ap.so-net.ne.jp)
I tried a vbs script which delay to run the program for 15 sec, and using a short cut in Startup folder to run it. Works for me so far.
Very simple:
Make a text file in the wamp folder.
Copy these 3 lines into this file:
Set ss = WScript.CreateObject("WScript.Shell"
WScript.Sleep 15000
ss.run "C:\Program_Files\wamp\wampserver.exe",7
Save and close.
Rename the file extension .txt to .vbs
Open the startup folder make shortcut to the vbs file in the startup folder.
If you want to change 15 sec to something else change the 15000 to another value.
The 7 at the end makes programs start minimized, but I guess it is not needed in this case. My WAMP is installed in "Program_Files" not "Program Files".
I add some other info I found below.
'==============
'Run and Minimize
'object.Run(strCommand, [intWindowStyle], [bWaitOnReturn])
'intWindowStyle: Optional. Integer value indicating the appearance of the program's window.
' Note that not all programs make use of this information.
' - use 7 for minimize
'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/0a8270d7-7d8f-4368-b2a7-065acb52fc54.asp
'==============
'StartupDelay.vbs - Sequentially run programs at Windows startup.
'Edit for your programs and delay, and put a shortcut to this
'script in your Startup folder. Full path to program may be needed.
'Copy and paste the 5 lines for adding more programs.
'© Bill James -
bill@billsway.com - created 4 Nov 2002
'
SecondsToDelay = "1"
ProgramToRun = "C:\Program\fulDC\DCPlusPlus.exe" 'may need full path
Wscript.Sleep(SecondsToDelay * 1000)
Prog = Chr(34) & ProgramToRun & Chr(34)
CreateObject("WScript.Shell"
.Run(Prog)
'==============
'Another Script
'
Set ss = WScript.CreateObject("WScript.Shell"
WScript.Sleep 15000
ss.run Chr(34) & "C:\Program\fulDC\DCPlusPlus.exe" & chr(34)