Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to access a file on a network drive, but the file has a : in its name. This makes Windows rather unhappy. I cannot rename the file through any method on Windows, so I tried a Mac computer. It sees the file and uses a / instead of the :, but it also throws errors when trying to rename the file. I booted up an Ubuntu live CD to check, but Ubuntu doesn't display the file at all (even with hidden files/folders shown).

I'm at a loss for what to do. I cannot rename, delete, or move the file, so it's stuck there. What can I do to forcefully rename the file? (Deletion is also acceptable, but I'd MUCH prefer saving the data if at all possible.)

This was attempted on Windows 8, OS X 10.8.5, and Ubuntu 13.04.

share|improve this question
Do you try moving it in OS X and Ubuntu by surrounding the name with single quotes? – Peon Sep 16 '13 at 19:11
@Peon I do not have SSH access to the remote location, so I cannot run command line stuff from bash. I tried all of the commands in Windows using pushd, but the only equivalent (that I know of) is ssh in Bash. – Vaindil Sep 16 '13 at 19:14
Try opening a command prompt and renaming it using it's 8.3 compliant name. – EBGreen Sep 16 '13 at 19:17
@EBGreen I'm not sure how to get it. I used dir /x, which is supposed to do it, but that returned the exact same results as dir. – Vaindil Sep 16 '13 at 19:21
Is the file name less than 8 characters? You can also try using powershell instead of cmd. Do a dir that will return only that file and pipe it to a command to rename it. – EBGreen Sep 17 '13 at 15:12

Have you tried renaming with wildcard matching? For instance, if the file is bad:name.bin, try ren bad*.bin ok.bin.

share|improve this answer
As a variation to this, try to use the short 8.3 file name: ren bad123~1.bin ok.bin – Jan Doggen Jul 29 '14 at 15:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .