-
I have been trying to open an external application from VB using the following code:
Dim shellProgram As String
Dim res
shellProgram = “c:\put file name in here"
res = Shell(shellProgram,vbNormalFocus)
End Sub
It keeps saying "No file found"... my application is not an exe extention, it is ICO (whatever that is). Does anyone know what I can do... please help!
-
Hi,
I really dont think that you would be able to open an icon file using shell command. Did u tried it with the image/picture control??Even then i dont think that u would be ableto get what u want? :(
------------------
Regards,
Venkat
[email protected]
ICQ: 45714766
http://venkat.iscool.net
-
Hope this can solve your problem.
Dim shellProgram As String
Dim ShellFile as string
Dim res
shellProgram = "C:\Windows\Notepad.exe"
shellFile = "c:\text1.text"
res = Shell(shellProgram & " " & shellFile,vbNormalFocus)
End Sub
The above example is open text file, so you need to find an application that can open *Ico file type and put it into the shellProgram.
------------------
A free Man stand on a free Land.
[email protected]
[This message has been edited by Chris (edited 02-22-2000).]
[This message has been edited by Chris (edited 02-22-2000).]
-
Thankyou! duh that I didnt know ICO was an Icon file!