/dev/null Posted August 11, 2005 Share Posted August 11, 2005 I'm unable to reproduce, sorry...I tried several MSI packages (running msi V 3.01.4000.1823)And I also tried some shortcuts created by a REAL installer like Inno...I can't make it NOT work!!! <{POST_SNAPBACK}>I guess it's best to post your complete code now. Some further ideas: 1.) have you checked if the files/directories are write protected?2.) temporarily disable your personal firewall and your virus scanner and then test again.3.) Can you delete the files with the dos command DEL?4.) Can you rename the files FileMove() and then delete them?CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
hgeras Posted August 12, 2005 Share Posted August 12, 2005 After changing from @DesktopDir to @DesktopCommonDir it worked ok for me....FileGetShortcut(),FileDelete() and FileRecycle() worked ok with the adobe shortcut..... $var=FileGetShortcut(@DesktopCommonDir & "\adobe.lnk") For $i=0 to 6 MsgBox(0,"",$var[$i]) Next FileDelete(@DesktopCommonDir & "\adobe.lnk") ;FileRecycle(@DesktopCommonDir & "\adobe.lnk") C ya Useful information about COM/Objects referenceMy Scripts:PapDefragNvidia Temperature Logger V3.0 with graph analyzerAutoiIt Update Checker And Downloader V1.0ArrayPush UDF Link to comment Share on other sites More sharing options...
JSThePatriot Posted August 12, 2005 Author Share Posted August 12, 2005 Okay this is what did it for me. I was using the proper @macro, but I failed to add the "\" before my link name when using FileDelete(@macro & "\someshort.lnk". So what I did is changed the directory to the proper place and it deleted with ease.I wish it wasnt such a simple error but atleast I learned something. Anyone if you have any issues please let me know.JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
/dev/null Posted August 13, 2005 Share Posted August 13, 2005 (edited) I wish it wasnt such a simple error but atleast I learned something. I think it's better to post the code with a problem. Otherwise people try to recreate the problem. This leads to a lot of work, which can be avoided by checking the erroneous code.CheersKurt Edited August 13, 2005 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
JSThePatriot Posted August 13, 2005 Author Share Posted August 13, 2005 I think it's better to post the code with a problem. Otherwise people try to recreate the problem. This leads to a lot of work, which can be avoided by checking the erroneous code.CheersKurt<{POST_SNAPBACK}>I most certainly will, though I posted some psuedo code. I thought it was more of a bug, not a problem with my code as I wasnt the only one having the issue. I searched the forum before I posted, and saw one or two others.Thanks for your help even though I didnt post as I should have. Been along time since I posted a help topic JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) 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