how can I Make a notepad file auto delete upon opening

Ryuson99

Golden Member
Feb 9, 2004
1,945
0
0
Hey Im trying to make a notepad file open at start and then auto delete itself upon being closed. is their a way to do this in win2k? thanks
 

Alex

Diamond Member
Oct 26, 1999
6,995
0
0
could you be more specific maybe?

you want to create a new notepad file when starting windows and then delete itself when closed? just dont save it... :confused:
 

Alex

Diamond Member
Oct 26, 1999
6,995
0
0
so you want the file to open up at startup and when auto delete? my bad man maybe im just bein kinda dense but youre really vague im having a hard time figuring out what exactly youre asking for... anyway im headin to class in a few mins so BUMP maybe someone else can help... good luck man!
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
You could do this with a simple script or batch file. Is the filename static?
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Save as a .CMD file:

start /wait notepad.exe "<full file path>"
del "<full file path>"
 

Ichinisan

Lifer
Oct 9, 2002
28,298
1,235
136
"CMD" file? You should make a batch file. It's the same thing, but ".CMD" is a misnomer. A text file containing a series of text commands should have a .BAT extension.
 

spyordie007

Diamond Member
May 28, 2001
6,229
0
0
I still dont understand why you dont just close notepad and not save the changes...

EDIT: a lot of negatives but you get the point.
 

Ichinisan

Lifer
Oct 9, 2002
28,298
1,235
136
Because the message is intended for someone else, and they don't want the prompt to even appear...

Use your imagination.
 

Ryuson99

Golden Member
Feb 9, 2004
1,945
0
0
you got it the message is for someone else and they got it fine.
the message was to appear once they turn on the computer that is why the just closing it without saving would not work.

and i did make the extension .bat :)


edit: added some stuff

 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
Originally posted by: Ichinisan
"CMD" file? You should make a batch file. It's the same thing, but ".CMD" is a misnomer. A text file containing a series of text commands should have a .BAT extension.

Same difference. :p

What's the correct usage for a .CMD file, then?