PDA

View Full Version : Windows users



snc128
01 Jun 07,, 13:13
anyone of u aware of why one cant use "con" while creating a *txt file or a new file etc.
entitle "con" a new file if u can!

i have just discovered a solution for it and wanted to share!

chankya
01 Jun 07,, 18:50
anyone of u aware of why one cant use "con" while creating a *txt file or a new file etc.
entitle "con" a new file if u can!

i have just discovered a solution for it and wanted to share!

CON is a reserved file name in windows. Its stands for "console".

LPT#(used to communicate with Line Printer/Parallel port) and COM#(used to communicate with com or serial ports) and PRN for printer etc are some more reserved words.

texasjohn
01 Jun 07,, 18:52
I had almost forgotten the old "copy con" command!!!! Jeez!! I don't want to show my age.:biggrin:

snc128
01 Jun 07,, 19:32
CON is a reserved file name in windows. Its stands for "console".

LPT#(used to communicate with Line Printer/Parallel port) and COM#(used to communicate with com or serial ports) and PRN for printer etc are some more reserved words.

do u have a solution for typing "con" into a new file's name

texasjohn
01 Jun 07,, 19:42
do u have a solution for typing "con" into a new file's name

What exactly are you trying to do?

chankya
01 Jun 07,, 19:54
do u have a solution for typing "con" into a new file's name

Nope(unless you're an application). So what is it?

snc128
01 Jun 07,, 23:26
Nope(unless you're an application). So what is it?
http://img170.imageshack.us/img170/8545/adszgh6.th.png (http://img170.imageshack.us/my.php?image=adszgh6.png)

Shamus
02 Jun 07,, 03:35
I had almost forgotten the old "copy con" command!!!! Jeez!! I don't want to show my age.:biggrin:Too late.:biggrin:Umm...I seem to remember it too texasjohn..:redface: ;)

chankya
02 Jun 07,, 05:04
http://img170.imageshack.us/img170/8545/adszgh6.th.png (http://img170.imageshack.us/my.php?image=adszgh6.png)

I'm sorry but i still don't get it. What's your solution?

snc128
02 Jun 07,, 22:04
I'm sorry but i still don't get it. What's your solution?

u still did not understand the problem?
type "con" intead of any folder's name then press enter.u will notice that the folder's name will not be "con".
similar situation is valid for the other type of new choices.e.g for txt files.

i m asking whether anyone knows a solution for it.
i mean,after writing "con" for a file's name,how can we provide it to sustain its name as "con" after pressing enter. ;)

chankya
02 Jun 07,, 23:28
u still did not understand the problem?
type "con" intead of any folder's name then press enter.u will notice that the folder's name will not be "con".
similar situation is valid for the other type of new choices.e.g for txt files.

i m asking whether anyone knows a solution for it.
i mean,after writing "con" for a file's name,how can we provide it to sustain its name as "con" after pressing enter. ;)

you can't. it's a reserved keyword in windows.


i have just discovered a solution for it and wanted to share!

I understand the problem but you said this ^^ in your first post and I thought you knew some kind of hack.

snc128
03 Jun 07,, 12:22
press function(in Turkish "Çalıştır...") from the start menu.
http://img174.imageshack.us/img174/700/adszeu2.th.png (http://img174.imageshack.us/my.php?image=adszeu2.png)
type "cmd" press enter.type "mkdir\\.\c:\con " to the following screen.
here it is;)
but u cant delete it.i still could not find how to delete that folder named "con"
;)

chankya
03 Jun 07,, 21:45
press function(in Turkish "Çalıştır...") from the start menu.
http://img174.imageshack.us/img174/700/adszeu2.th.png (http://img174.imageshack.us/my.php?image=adszeu2.png)
type "cmd" press enter.type "mkdir\\.\c:\con " to the following screen.
here it is;)
but u cant delete it.i still could not find how to delete that folder named "con"
;)

rd \\.\c:\con should work. or alternatley rename and delete
( ie ren \\.\c:\con foo
rmdir foo )

Its been sometime since i last did anything command line on windows so I'm not sure if the correct command is rmdir or rd. )