how to erase a quite precise file in hard drive?

Help each other out

how to erase a quite precise file in hard drive?

Postby jumpman23 on Sun Jul 09, 2006 8:54 am

Hello,how to erase a quite precise file which is in my hard drive with an event?
jumpman23
 
Posts: 12
Joined: Sat Feb 11, 2006 12:25 am

Re: how to erase a quite precise file in hard drive?

Postby dalanik on Sun Jul 09, 2006 10:50 am

jumpman23 wrote:Hello,how to erase a quite precise file which is in my hard drive with an event?


Hmm, just create a batch file (.bat) then run it from an event in xlobby...

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby jumpman23 on Sun Jul 09, 2006 11:19 am

Thanks dalanik, but what is the structure of .bat please?
jumpman23
 
Posts: 12
Joined: Sat Feb 11, 2006 12:25 am

Postby dalanik on Sun Jul 09, 2006 12:31 pm

jumpman23 wrote:Thanks dalanik, but what is the structure of .bat please?


just create file from the notepad, and save it with ".bat" extension. to delete a file just put

del c:\folder\folder2\file.txt

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic

Postby jumpman23 on Sun Jul 09, 2006 12:47 pm

great dalanik and thanks :D
jumpman23
 
Posts: 12
Joined: Sat Feb 11, 2006 12:25 am

Postby jumpman23 on Sun Jul 09, 2006 2:20 pm

strange I can't erase a file from program files. Why?
"the file is no found"
jumpman23
 
Posts: 12
Joined: Sat Feb 11, 2006 12:25 am

Postby dalanik on Sun Jul 09, 2006 9:35 pm

jumpman23 wrote:strange I can't erase a file from program files. Why?
"the file is no found"


probably because of the space in path... try putting the whole path in quotes i.e. "c:\program files\..." or putting c:\progra~1\ instead (short name)... you can list short names from command prompt by typing dir /x

D.
dalanik
 
Posts: 885
Joined: Mon Apr 19, 2004 12:35 pm
Location: Prague, Czech Republic