Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Ok i want to beable to use the shell command to start gens.exe (sega emulator) and load a game automaticly all from one line of code.
Edog

Use the Win32 API called ShellExecute:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOW = 5ShellExecute 0,"OPEN","gens.exe","gamename","C:\Path To gens.exe", SW_SHOW
Enjoy,
Chi Happens
They mostly come at night...mostly.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |