Jump to content

ShellExecute error and work anyway...


Recommended Posts

I call the ShellExecute on a MS-Access file, the file open and i receive an error message.... :shocked:

Can you help me ?

ShellExecute("C:\BD\update.mdb")

Error: Windows cannot find "C:\BD\update.mdb".... but the database is open

Link to comment
Share on other sites

Same probleme

That's apparently an Access error. Can you just open the database in Access with no problems? Was the database created with the same or an older version of Access than you are using? I use ShellExecute with mdb files all the time and there is no problem except where I have created the database using Access 2003 and the user tries to open it with Access 97.

I do beleive that a search of the MS knowledge base will turn up a solution.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Can you just open the database in Access with no problems? Yes

Was the database created with the same or an older version of Access than you are using? NO

I go searching in MS knowledge base. If you have another answer or somebody have the same problems, please post it

Thanks

Link to comment
Share on other sites

  • 4 weeks later...

I experience the same problem.

ShellExecute("http://www..............")

ShellExecute() does it's job of opening my webpage, but occasionally I also receive "File cannot be found....." error (while the page opens just fine). I would just need to know how to set @error properly so I never receive the error message :-)

Link to comment
Share on other sites

I experience the same problem.

ShellExecute("http://www..............")oÝ÷ Ù(^Q1yË­yÚ²+wöÈènè¥éâ ²ÁæéjºÚq«"¢v¥"Ê+yÇ¢½ê®¢Ñbçz-mçèºwjº^®º+Â¥zØ^¥¨¢§²;¬µø§x(ºWcºËgyçm¢IèÂ0¶µê뢺k¢«+("w¯zºÞqè¯zØ^zºè®g¬±¨þ«¨µå,{*.­³©·öâ¢{-¢ë²)^׫®ÚºÚ"µÍÜ
    ÌÎNÔ[ÜÑ][  ÌÎNË
BÚ[^]][ÝÚËÝÝÝË][ÝÊBYÜ[[]HÛÙHÈÙB[Y
Link to comment
Share on other sites

Thanks much. I should have done this long ago, but since this occurs infrequently I never bothered :-) I'm assuming it's okay to implement it in my function in the following way:

Opt('RunErrorsFatal', 0)
ShellExecute("http://www..............")
Opt('RunErrorsFatal', 1)
Link to comment
Share on other sites

Yep, that is fine. You are suppressing the error, using ShellExecute(), and then resetting the Opt() back to previous fatal on errors. That is indeed fine.

:)

Edited by MHz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...