Reserved Names
Moderators: white, Hacker, petermad, Stefan2
Reserved Names
I just read this page http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q120/7/16.ASP&NoWebContent=1
and i had to try to make a file caled 'lpt1' (yes... i'm bored
I press shift+F4, type 'lpt1' and press OK. Then TC stops responding
and my text editor also freezes. Is that normal or is it just my copy
of TC5.51/WinXP that's acting funny?
I know the filename isn't allowed but it's a little rough way to find out.
If I try the same in WinExplorer it just won't make the file... no crash.
and i had to try to make a file caled 'lpt1' (yes... i'm bored
I press shift+F4, type 'lpt1' and press OK. Then TC stops responding
and my text editor also freezes. Is that normal or is it just my copy
of TC5.51/WinXP that's acting funny?
I know the filename isn't allowed but it's a little rough way to find out.
If I try the same in WinExplorer it just won't make the file... no crash.
Heh, funny you should mention it; just a couple of days ago I tried creating a file named [con], and got this weird error message: "This filename is a reserved device name. Please choose another name"; My first experience with this... anyway I believe it's your text editor's fault, I tried a couple of mine, one gave the correct message the other died.
Cheers.
Cheers.
Guess what, I am also bored So I tried to create the file lpt1, it doesn't work but it does ask to save and saying yes, nothing happens. This is what I did: SHIFT-F4 --> enter filename (lpt1) --> type some garbage --> ALT-F4 --> would you like to save? Yes. Notepad closes and no file is created. If I do this with [con] the file is saved as [con]. No problems. Running WinXP and TC 5.51.
No probs here with those names Just to let you know.
Botak
No probs here with those names Just to let you know.
Botak
Registered user #92105
I'm on w2k, so it seems [con] is reserved file name on w2k but not on XP; either way the OP's problem is probably the text editor.
Lar5, try opening your text editor and manually creating the new file [lpt1] and see what happens, I'm betting it'll b0rk, alternatively you can temporarily set TC's text editor back to notepad and test that.
Cheers.
Lar5, try opening your text editor and manually creating the new file [lpt1] and see what happens, I'm betting it'll b0rk, alternatively you can temporarily set TC's text editor back to notepad and test that.
Cheers.
Tried that too, also no problem on my WinXP, TC 5.51. Just nothing happens. What happens if you copy in WinExplorer? Also crash?compie Posted: Mon Jul 14, 2003 8:05 am Post subject:
--------------------------------------------------------------------------------
When I try to copy a file (eg. john.txt) with F5 and enter lpt1 as the new name totalcmd stops responding.
So is this a bug in totalcmd or not?
Botak
I don't think it's a problem/bug related to TC.
Since the good old days of DOS (D-Days ) there are some names
related to devices, and hence are'nt allowed to be used for filenames:
PRN, LPT1-LPT3, AUX, COM1-COM4, NUL and CON
I don't claim this list to be complete, maybe some are only existent under a particular OS.
Since the good old days of DOS (D-Days ) there are some names
related to devices, and hence are'nt allowed to be used for filenames:
PRN, LPT1-LPT3, AUX, COM1-COM4, NUL and CON
I don't claim this list to be complete, maybe some are only existent under a particular OS.
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It's not a bug, it's a feature! You can choose 'print to file' in any program, which will give you a *.prn file. You can then copy this file to prn or lpt1 with Total Commander with the F5 copy function.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Nice, tried it, but it doesn’t seem to work here (no lpt1 printer but a networked one, shouldn't prn work?), it seems it's also impossible to stop the task other than killing TC (abort doesn't work).It's not a bug, it's a feature! You can choose 'print to file' in any program, which will give you a *.prn file. You can then copy this file to prn or lpt1 with Total Commander with the F5 copy function.
Cheers.
- ghisler(Author)
- Site Admin
- Posts: 48083
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
For network printers, you need to use something like
\\servername\printername
\\servername\printername
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com