CRC32 String as File's Name?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Member
Posts: 15
Joined: 13 Oct 2009 03:09

CRC32 String as File's Name?

Post 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);

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: CRC32 String as File's Name?

Post by highend »

Code: Select all

// Hash files individually
	foreach($entry, "<get SelectedItemsPathNames>", "<crlf>") {
		rename b, hash(crc32, $entry, 1), , $entry;
	}
One of my scripts helped you out? Please donate via Paypal

Member
Posts: 15
Joined: 13 Oct 2009 03:09

Re: CRC32 String as File's Name?

Post by Member »

I got an access denied error. Attached is the error snapshot.
Attachments
Untitled.png
Untitled.png (7 KiB) Viewed 1346 times

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: CRC32 String as File's Name?

Post by highend »

On a specific file? Permissions?
One of my scripts helped you out? Please donate via Paypal

Member
Posts: 15
Joined: 13 Oct 2009 03:09

Re: CRC32 String as File's Name?

Post by Member »

Nevermind, I got it to work. Thanks highend!

Post Reply