Noviceatthis 3 Posted March 1, 2013 Hello all I would like to set up a script which determines whether any file is in a specific folder this is what I have so far, if not FileExists (@UserProfileDir & "\Copy Folder\") Then DirCreate(@UserProfileDir & "\Copy Folder\") EndIf if FileExists (@UserProfileDir & "\Copy Folder\*.*") Then $string = StringSplit(@UserProfileDir & "\Copy Folder\*.*", "\") MsgBox(0, "", $string[5]) EndIf I just dont know the macro for "any file", and it seems as though *.* didnt work. any help would be amazing Share this post Link to post Share on other sites
water 2,365 Posted March 1, 2013 Use function FileFindFirstFile. If you get @error = 1 then the directory is empty. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX (NEW 2020-12-15 - Version 1.6.3.1) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2020-06-27 - Version 1.3.2.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsPowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & SupportExcel - Example Scripts - WikiWord - WikiTask Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - WikiTutorials:ADO - Wiki, WebDriver - Wiki Share this post Link to post Share on other sites
Noviceatthis 3 Posted March 1, 2013 thanks, i'll try that now Share this post Link to post Share on other sites