Hi all
I used a vb 6 code to open swf (flash file) by its player (SAFlashPlayer.exe)
So I saved vb project to exe file
I executed the exe file (start.exe) and work perfect on HD
This is the code
----------------------------------
Option Explicit
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
Private x As String
Private y As String
Private location As String
Private file As String
-----------------------------------------------
Private Sub Form_Load()
x = App.Path & "\SAFlashPlayer.exe"
y = App.Path & "\a1.swf"
location = Chr(34) + x + Chr(34)
file = Chr(34) + y + Chr(34)
Unload Me
Shell location + " " + file, vbNormalFocus
-----------------------------------------------------
Then I want to run the start.exe from CD ROM as Auto run file.
I burned all files in the same root and
Tried this in the autorun.inf file.
[autorun]
Open=start.exe
With title project1 The error message appear
Run time error '53'
File not found
***********************
But it work perfect on HD
Please any one can help me