I want to rename a fil, but its name has 2 spaces, on next to the other, such as "double spaces". Does anybody has an idea how could I rename this file?
My problem is not a big filename but a filename with 2 spaces one next to the other. In this occution mIRC "recognises" them as one and so when I try to rename it returns that the file does not exists. Any other ideas?
it works for me when I use $findfile($mircdir,double*,1) though (when looking for double spaces.txt (with 2 spaces between double and spaces, this forum can only show 1 space ) in C:\Program Files\mIRC)
Tsunami you are right, but the rename command doesn't work My problem is in the rename command. I tried to write a batch file in order to do this, but mIRC replaces the 2 spaces with one!!!!
How could I rename this file? Why chr(32) no to be like other chrs?
Yup, probably because mIRC thinks that one space is a new parameter. Normally you have to use $shortfn to prevent that from happening, but apparently it doesn't work with two spaces. I tried several things, but it renames to the first word (before the double spaces), or it gives an error. Maybe something for the Bug Reports section?