|
-
Feb 21st, 2000, 06:11 PM
#1
Thread Starter
New Member
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!
-
Feb 21st, 2000, 06:47 PM
#2
-
Feb 21st, 2000, 06:53 PM
#3
PowerPoster
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).]
-
Feb 21st, 2000, 10:05 PM
#4
Thread Starter
New Member
Thankyou! duh that I didnt know ICO was an Icon file!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|