Icedmetal57
Member
So first off I'm not really sure as to where to put this topic seeing how there isn't an actual generic programming board, but that's besides the point.
My question for you guys is...how can I convert a file name to a shorter file name, in a UTF 8.3 format in Ruby?
For example in command prompt/DOS you can type in the command 'dir /x' which will display all the files in the currently opened directory and will show the shortened version of the file names beside the full name. For example when I do that I have a file on my hard drive called 'My Programs' but when I type 'dir /x' it'll then become 'MYPROG~1' so that I can now use that shorter name as a parameter in a command because the longer 'My Programs' version will not work due to the space in it's name.
My question for you guys is...how can I convert a file name to a shorter file name, in a UTF 8.3 format in Ruby?
For example in command prompt/DOS you can type in the command 'dir /x' which will display all the files in the currently opened directory and will show the shortened version of the file names beside the full name. For example when I do that I have a file on my hard drive called 'My Programs' but when I type 'dir /x' it'll then become 'MYPROG~1' so that I can now use that shorter name as a parameter in a command because the longer 'My Programs' version will not work due to the space in it's name.