Page 1 of 1

CRC32 String as File's Name?

Posted: 11 Nov 2012 01:25
by Member
How can I get the batch renaming command to work with CRC32? I tried the below item but it renames all the files with the same CRC32. Each file should have a different CRC32 string.

rename b, hash(crc32,,1);

Re: CRC32 String as File's Name?

Posted: 11 Nov 2012 08:27
by highend

Code: Select all

// Hash files individually
	foreach($entry, "<get SelectedItemsPathNames>", "<crlf>") {
		rename b, hash(crc32, $entry, 1), , $entry;
	}

Re: CRC32 String as File's Name?

Posted: 11 Nov 2012 18:00
by Member
I got an access denied error. Attached is the error snapshot.

Re: CRC32 String as File's Name?

Posted: 11 Nov 2012 18:01
by highend
On a specific file? Permissions?

Re: CRC32 String as File's Name?

Posted: 11 Nov 2012 18:05
by Member
Nevermind, I got it to work. Thanks highend!