in reply to Re^4: Problem running shell command from Perl
in thread Problem running shell command from Perl

We have a winner!

Writing the command to a bat file then running the bat file with backticks gets the job done. I doubt I would ever have thought of that, so thanks!

Seems like a crazy amount of overhead to accomplish what should be a simple task. But it works, so I'm happy.

This issue is resolved.

  • Comment on Re^5: Problem running shell command from Perl

Replies are listed 'Best First'.
Re^6: Problem running shell command from Perl
by harangzsolt33 (Deacon) on Jun 20, 2023 at 19:12 UTC
    I'm glad it works.

    While I was going about my business, I kept thinking about this issue, and I had another idea: Create a FAT32 file system either on an external hard drive or on your main hard drive and move or copy your entire Music directory on that file system. The FAT32 file system automatically maintains two file names for every file -- one 8+3 short name and one long name. That way the short names would be created at the time you copy the files, and older programs would immediately see the short named files. This would bypass the need to rename each file.

      I thought about this, but ultimately decided to create the 8dot3 names on the fly, when and only if needed. Don't need to create them if they already exist, or if the original filename contains no unicode chars. Also, creating the 8dot3 name without doing a copy seemed a bit safer.

      Thanks for your help.