hdrolet Posted April 5, 2007 Share Posted April 5, 2007 I call the ShellExecute on a MS-Access file, the file open and i receive an error message.... 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 More sharing options...
Valuater Posted April 5, 2007 Share Posted April 5, 2007 Maybe ... try this Local $file = "C:\BD\update.mdb" If FileExists($file) Then ShellExecute($file) Else MsgBox(0,"Error", $file & " was not found", 5) EndIf 8) Link to comment Share on other sites More sharing options...
hdrolet Posted April 5, 2007 Author Share Posted April 5, 2007 Same probleme Link to comment Share on other sites More sharing options...
GEOSoft Posted April 5, 2007 Share Posted April 5, 2007 Same problemeThat'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 More sharing options...
hdrolet Posted April 5, 2007 Author Share Posted April 5, 2007 Can you just open the database in Access with no problems? YesWas the database created with the same or an older version of Access than you are using? NOI go searching in MS knowledge base. If you have another answer or somebody have the same problems, please post itThanks Link to comment Share on other sites More sharing options...
Noob Posted May 2, 2007 Share Posted May 2, 2007 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 More sharing options...
MHz Posted May 2, 2007 Share Posted May 2, 2007 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Ú[^XÝ]J ][ÝÚËÝÝÝË][ÝÊBYÜ[NÈ[]HÛÙHÈÙB[Y Link to comment Share on other sites More sharing options...
Noob Posted May 2, 2007 Share Posted May 2, 2007 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 More sharing options...
MHz Posted May 2, 2007 Share Posted May 2, 2007 (edited) 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 May 2, 2007 by MHz Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now