JustinReno Posted October 7, 2007 Share Posted October 7, 2007 I was using Simple Web Browser on a write protected thumb drive, when it writes to the ini, there is an AutoitV3 Error saying that its write protected. They get sort of nagging, and is there a way to turn these off? Link to comment Share on other sites More sharing options...
PsaltyDS Posted October 7, 2007 Share Posted October 7, 2007 I was using Simple Web Browser on a write protected thumb drive, when it writes to the ini, there is an AutoitV3 Error saying that its write protected. They get sort of nagging, and is there a way to turn these off?The FileWrite, FileWriteLine, and IniWrite functions just return 0 or set @error when they can't write. FileOpen just returns -1 if the file can't be opened for write. None of them generate messages to the desktop unless some code in the script is doing it.In short, adjust your script for better error handling (or request the script's author to do it). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
ChrisL Posted October 7, 2007 Share Posted October 7, 2007 In windows xp (maybe others) you can lock and unlock write access to USB pen drives with a registry entry Unlock RegWrite ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies" ,"WriteProtect","REG_DWORD", "0") Lock RegWrite ("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies" ,"WriteProtect","REG_DWORD", "1") [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
JustinReno Posted October 7, 2007 Author Share Posted October 7, 2007 Well, thanks for the help, But I was testing to see how SWB did on a write protected drive, like a thumbdrive. There is a switch on the side of my thumbdrive that locks it. I turned the switch to lock, and when SWB starts it gives me an AutoitV3 error saying it can not write to the disk. Can I get that too just not show, SWB still works fine with it when I press continue, but I just want to make it so they don't show up. 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