I need to write a script that sets the short name of a file on a FAT32 file system. On NTFS I can use the FSUTIL utility under windows but I cannot seem to fathom out how to do this for a FAT32 drive.
Bonus kudos for a window command or powershell script
Unfortunately it's not possible because it's the limitation of the
SetFileShortName()
Win32 API which I believefsutil
also uses under the hoodYou can manually hex edit the FAT32 partition to set the short names and update the checksums but it'll be quite fragile without support from the file system driver