Modify

Opened 10 years ago

Closed 10 years ago

#917 closed Bug (Works For Me)

Funciton FileRecycleEmpty() hangs

Reported by: roman.kuechler@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.0.0 Severity: None
Keywords: FileRecycleEmpty() hangs Cc:

Description

Hi

I use AutoIt since many years. The last days i had a strange behaviour of the function FileRecycleEmpty():

We use some AutoIt-Script from me of about 600 servers. On one (really only one!) server, my script stopped execution and hung (process still open) every time on the same line:

$RecycleDEmpty = FileRecycleEmpty("D:\")

Even if i tryed to time out the function, the script hung:

$RecycleDEmpty = 0
$TimerBegin = TimerInit()
While $RecycleDEmpty <> 1 And TimerDiff($TimerBegin) < 30000
	$RecycleDEmpty = FileRecycleEmpty("D:\")
	Sleep(1000)
WEnd
If $RecycleDEmpty = 1 Then
	FileWriteLine($AutoImagelog, @MDAY & "." & @MON & "." & @YEAR & @TAB & @HOUR & ":" & @MIN & ":" & @SEC & @TAB & "Recycler of D: emptied successfully.")
ElseIf $RecycleDEmpty = 0 Then
	FileWriteLine($AutoImagelog, @MDAY & "." & @MON & "." & @YEAR & @TAB & @HOUR & ":" & @MIN & ":" & @SEC & @TAB & "Recycler of D: could not be emptied.")
EndIf	

I tryed many things, e.g. a "chkdsk /f" on this drive, without success. Until i deleted(!) the (system-)directoy "RECYCLER" on drive D: manually on that server. Windows generated immediately a new directory "RECYCLER" and from then on the script worked.

Unfortunately, i can't show the output from the _DebugBugReportEnv() function because it's the first time i report a bug. Very sorry.

But something was wrong with the Recycle Bin on this drive D: and AutoIt couldn't handle this.

Kind regards,
Roman.

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by roman.kuechler@…

Sorry: The concerning server was a Windwos 2003 Standard SP2 Server (ESX Virtual Machine, with Citrix installed).
Regards, Roman.

comment:2 Changed 10 years ago by Valik

  • Resolution set to Works For Me
  • Status changed from new to closed

Either you had a lot of stuff in the recycle bin and just didn't let it wait long enough or the recycle bin was corrupt. Also, your code was never going to work. If execution is hung on the FileRecyle() line how exactly did you think it was going to go through that loop?

Closing as works for me.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.