Hi,
I have code to open program that work(on attach files).
My problem is when I change code to open another file it error.
Ex:
Right code:
Call Shell(li & "\" & "Program Files\Microsoft Office\Office10\POWERPNT.EXE", 1)
Error code:
Call Shell(li & "\" & "aa.pdf", 1)
Error say:"Invalid procedure call or argument"
I have file on my computer.
Can anyone help me with this problem please?
Thanks!
seyha
Seyha Eng
0
Newbie Poster
Recommended Answers
Jump to PostCall statement Transfers control to a Sub procedure, Function procedure, or dynamic-link library (DLL)procedure.
I believe that you cannot use "CALL" to call a file which is not executable.
same goes with SHELL...Call Shell(AppName, 1) Where AppName contains the path of the Executable file.
try it …
Jump to PostSo what can I do with the problem? Can you make the file for me please?
Thanks! I hope will here from you soon.
seyhaSure, I'll give the code in the evening when i come back from office.... Leaving for office now :-)
Try using commondialog controls with …
All 6 Replies
koolsid
1
Light Poster
Seyha Eng
0
Newbie Poster
koolsid
1
Light Poster
Comatose
290
Taboo Programmer
Team Colleague
koolsid
1
Light Poster
Comatose
290
Taboo Programmer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.