v1.1.33.00 issue with filerecycle

Get help with using AutoHotkey and its commands and hotkeys
User avatar
PuzzledGreatly
Posts: 879
Joined: 29 Sep 2013, 22:18

v1.1.33.00 issue with filerecycle

10 Jul 2020, 20:16

I'm using the following code to remove files that aren't referenced in a particular ahk script:

Code: Select all

fileselectfile, file, , %A_ScriptDir%, Choose a file, *.ahk
If Errorlevel
exitapp

fileread, test, %file%
SplitPath, test,, dir

chits := ""
loop, files, %dir%\bits\*.*
{
	if !instr(test,A_loopfilename)
	filerecycle, %A_loopfilepath%
	else
	chit .= A_loopfilename "|"
}
The code is working except that the non-matching files are being deleted rather than being sent to the recycle bin. The files concerned are on a regular hard drive. Am I using filerecycle incorrectly or is there an issue with it? Thanks
User avatar
PuzzledGreatly
Posts: 879
Joined: 29 Sep 2013, 22:18

Re: v1.1.33.00 issue with filerecycle

10 Jul 2020, 20:19

Sorry! There's an issue with my eyesight! I thought I was using my regular hard drive but I was working on a thumb drive. My apologies.

Return to “Ask For Help”

Who is online

Users browsing this forum: Burnsy, eL Tux, karkas, Penguin and 61 guests