iguanas Posted May 9, 2009 Share Posted May 9, 2009 This is maybe a bug, maybe not, but I think that this behavior should not happen at all, and in some ways gives you another perspective of how clipboard works. Explanation yesterday i was woking with some servers and copy a command to paste in a brand new txt file. the command was \\192.168.1.1\c$ i selected the command and pressed ctrl-C i right click desktop and created a new text file, but by error i pressed ctrl-V in the name of the txt file Windows pasted 192.168.1.1c$ and told me that some characters will not do in a filename. i pressed esc to get the original filename opened the file name and pasted the clipboard content. Now, what i pasted was 192.168.1.1c, so MY clipboard content was modified by windows. I mean instead of modyfing the file name to remove the characters, windows modified my clipboard. Link to comment Share on other sites More sharing options...
janek2012 Posted May 9, 2009 Share Posted May 9, 2009 Wow, nice find! Checked on 7100 x64 - this bug is alive :D Link to comment Share on other sites More sharing options...
jswalker2 Posted May 9, 2009 Share Posted May 9, 2009 This happens in windows vista as well as you noted, but still a nice find :) Link to comment Share on other sites More sharing options...
iguanas Posted May 9, 2009 Author Share Posted May 9, 2009 Well, if anyone can report it, do it, i don't want any credit, only a more stable and coherent OS. I will be using it for years to come. BTW i found the "bug" in a 2003 remote terminal i was working on, so i opened my 7VM and tried it there. still alive as janek said. That makes me think about how really clipboard works. Link to comment Share on other sites More sharing options...
Admiral Michael Posted May 9, 2009 Share Posted May 9, 2009 This is odd. I tried the same thing in Windows XP and I get 192.168.1.1c$. Altho when pasting the result in other places it's giving me random results, like in this reply I'm getting 192.168.1.1c$ but in MS Word I'm getting \\192.168.1.1\c$. This is odd. Link to comment Share on other sites More sharing options...
Patchou Posted May 9, 2009 Share Posted May 9, 2009 Nice catch! I confirm this bug happens in Vista SP2 also. Link to comment Share on other sites More sharing options...
Hani Posted May 9, 2009 Share Posted May 9, 2009 nice find! it also happens in Vista SP1. The bug happens when renaming a file by copying+pasting an invalid file name. Windows removes the invalid characters from the file name in clipboard. Link to comment Share on other sites More sharing options...
iguanas Posted May 9, 2009 Author Share Posted May 9, 2009 Also happens in XP. (My main OS at work(and as mike said)) and 2000. Maybe is one of a bunch of legacy windows bugs. who knows... In another topic... Also is nice (very nice and feels good) to find many other users like me, that have been around for years and years, and only make posts in forums to talk of meaningful things :p Best regards Link to comment Share on other sites More sharing options...
DaveJukes Posted May 9, 2009 Share Posted May 9, 2009 This is not the clipboard changing. It is the destination server taking out the illeagal characters for a file name. If you paste it into the new text file on the destination server it will be what you copied. If you paste it into a text file on the source machine it will be what you copied. Been there since vista at least. Dave. Link to comment Share on other sites More sharing options...
Lord Ba'al Posted May 11, 2009 Share Posted May 11, 2009 Now that's an odd bug. Link to comment Share on other sites More sharing options...
Eric Veteran Posted May 11, 2009 Veteran Share Posted May 11, 2009 This is not the clipboard changing. It is the destination server taking out the illeagal characters for a file name. If you paste it into the new text file on the destination server it will be what you copied. If you paste it into a text file on the source machine it will be what you copied. Been there since vista at least.Dave. It's definitely changing the clipboard data. Pasting "\\192.168.1.1\c$" into a filename removes the invalid characters. Opening notepad and pasting immediately after resulted in the modified data being pasted into the text file: "192.168.1.1c$" Link to comment Share on other sites More sharing options...
LightIdea Posted May 11, 2009 Share Posted May 11, 2009 This has always been a bug, it's actually intentional. Remember the /con/con bug of Win98? Microsoft fixed that, and in turn got rid of backslashes in actual filenames/folders to stop this bug. You can actually create a folder called "\\192.168.1.1\c$" but my guess is that you have to create it within another OS. I haven't tried that myself, but it may not be possible because of changes to the FAT32 and NTFS filesystems. Link to comment Share on other sites More sharing options...
iguanas Posted May 11, 2009 Author Share Posted May 11, 2009 it definitively modifies your clipboard data... The \\whathever\ was an example only of how i found the data was being modified. Link to comment Share on other sites More sharing options...
+SOOPRcow MVC Posted May 11, 2009 MVC Share Posted May 11, 2009 http://www.bluemars.org/clipx/ - Best clipboard tool ever :) Link to comment Share on other sites More sharing options...
rakeshishere Posted May 11, 2009 Share Posted May 11, 2009 http://www.bluemars.org/clipx/ - Best clipboard tool ever :) I use Ditto http://ditto-cp.sourceforge.net/ Link to comment Share on other sites More sharing options...
CentralDogma Posted May 12, 2009 Share Posted May 12, 2009 Neat bug. Tried it on Vista. You have to try to create the file on the desktop, if you try it in someplace like my docs, windows will just prevent you from pasting it. Link to comment Share on other sites More sharing options...
Recommended Posts