Jump to content

Recommended Posts

Hi Felix K,

There is no way to do this I'm afraid.



Please tag me using @ in your reply so I can be sure to respond ASAP.

Share this post

Link to post
Share on other sites

I'm not sure what your use case is, however if what you want to do is just rename all the photos in a folder with random names, you could rename the files using PowerShell.

The below script will rename all .tif and .tiff files that are in a Desktop folder called "Test", with random 8 digit alphanumeric (0-9, a-z) names.  The -WhatIf switch parameter means it will give a simulated preview and will obviously need to be removed before it will actually rename any files.  Make sure you test it is doing exactly what you want it to do before removing the -WhatIf switch parameter.

# Path and length
$Path = "$env:UserProfile\Desktop\Test"
$Length = 8

# Run
Get-ChildItem -Force -File -Path $Path | 
Where-Object { ($_.Extension -eq ".tif") -or ($_.Extension -eq ".tiff") } | 
ForEach-Object {
    $RandomName = -Join (
        (48..57 + 97..122) * $Length | 
        Get-Random -Count $Length | 
        ForEach-Object { [char]$_ }
    Rename-Item -Path $_.FullName -NewName ("{0}{1}" -f $RandomName, $_.Extension) -WhatIf




Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.