KaFu Posted December 1, 2012 Posted December 1, 2012 Is there a way to get this to write files over 2gb or ram?I really like this one , but some points came to my mind. Better use _Winapi_FileGetSizeEx to pass the 2 GB limit. Also I would recommend to process larger files in a loop, as the files are mapped to the process address space and thus large files are likely to consume too much RAM (up to crashing the script). My post on " should contain all required details for that. OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
legend Posted June 7, 2015 Posted June 7, 2015 Only your test version works for me:Is it considered safe, so the files can't be recovered with such software as recuva?Func FileWipe($sFileName, $nByte = 0x0) If Not FileExists($sFileName) Then Return $iSize = FileGetSize($sFileName) $tBuffer = DLLStructCreate("byte[" & $iSize & "]") MemSet(DLLStructGetPtr($tBuffer), $nByte, $iSize) $hFile = _WinAPI_CreateFile($sFileName, 2, 6) _WinAPI_WriteFile($hFile, DLLStructGetPtr($tBuffer), $iSize, $iSize) _WinAPI_CloseHandle($hFile) FileDelete($sFileName) EndFunc
Zedna Posted June 8, 2015 Author Posted June 8, 2015 Try it!Wipe it with this function and then use some recover tools to see if content of recovered files will be original or zeros. Resources UDF ResourcesEx UDF AutoIt Forum Search
legend Posted June 11, 2015 Posted June 11, 2015 Try it!Wipe it with this function and then use some recover tools to see if content of recovered files will be original or zeros.I tried with recuva, and the result was zeroes
Zedna Posted June 11, 2015 Author Posted June 11, 2015 I tried with recuva, and the result was zeroes Perfect!Thanks for testing and sharing the result. Resources UDF ResourcesEx UDF AutoIt Forum Search
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