Jump to content

Search the Community

Showing results for tags 'fileexist'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 3 results

  1. I'm having troubles with FileExist function. My autoit version is 3.3.14.2. I'm working with C:\windows\System32 folder. On windows 7 I use this script copied and modified from FileExist.au3 from the Autoit Help chm #include <MsgBoxConstants.au3> #include <WinAPIFiles.au3> Example() Func Example() ; Create a constant variable in Local scope of the filepath that will be read/written to. Local $sFilePath = "C:\windows\System32\PrintBrmUi.exe" ; Then try with : C:\windows\System32\printui.exe Local $sFileVersion = FileGetVersion($sFilePath, $FV_PRODUCTNAME) ;Local $iFileExists = FileExists($sFilePath) ; Display a message of whether the file exists or not. If FileExists($sFilePath) Then MsgBox($MB_SYSTEMMODAL, "", "The file " & $sFilePath & " exists. " & @CRLF & $sFileVersion) Else MsgBox($MB_SYSTEMMODAL, "", "The file " & $sFilePath & " doesn't exist." & @CRLF & $sFileVersion) EndIf EndFunc ;==>Example if the productname of the file doesn't have key words like Windows or Microsoft it say that the file do not exist... Try it it! Send me your feedbacks _________________________________________ Bouzzi
  2. Hello friends! I want to delete the file only if it exists, if not, must not appear msgbox code: $MyBox = MsgBox(1, "Cancel file", "the file records.dat exists .. want to delete it!") If $MyBox == 1 Then if FileExist then FileRecycle("records.dat") return false EndIf
  3. Hello, again ... Ive been working a lot on a script lately .. unfortunately I just.. cannot figure to get it to work ( im no coder.. ) I start a new thread , cause the old one isoutdated, the code, have changed a lot since its creation so far.. 1 - I need to search for every files with specific extensions on C:\ G:\ H:\ drive and get their filesize. ---- Solved Using UDF _DirGetSizeEx 2- Output everything to log --- Solved too 3- Proceed to copy IF for drive G: ( another function ) @username match file ownership --- Not yet figured out.. Tried that.. no succes so far... and im sure its pretty obvious why but once again, cant figure it out . . ( it is only a TEST' not the actual code.. ) 4- If ownership match, proceed to copy, to $storage, If upon copy FileExist, rename to $sFilename_1."extension of the file" --- having trouble here too ... heres the code.. Thank you ... btw. its really important for me, it for a Notes Migration of 1740 users... I dont want to do it by hand.. not, at all!
×
×
  • Create New...