Command promt help

Currently reading:
Command promt help

Bushboy

Chris
Joined
Oct 2, 2003
Messages
9,930
Location
Cheadle, Staffordshire
im trying to delete a corupt file that crashes windows everytime you even open the directory its in.

plan is to delete it via dos/command promt.

how can i get into a folder thats got a long name

eg. "my documents"

if you put CD My documents ... it throws up the error dir "my" not found... so what can i put to make dos understand the space?

also, what would the command be to delete a complete folder rather than just 1 file?

Thanks
 
Joined
Mar 29, 2005
Messages
5,034
Location
NW London
CD mydocu~1

OR

CD "My Documents" or if that fails: CD "C:\My Documents"

And to delete Directory you must go into the folder and type:

attrib -s -h -r *.* (WIN98 DOS AND OLDER ONLY I THINK)

then DEL *.*

You could try: RD "Directory Name" but I'm not sure how the Remove Directory function works
 
Last edited:

hmallett

Mr Pedantic
Joined
Mar 2, 2005
Messages
5,102
Location
Wales
For file and directory names with spaces in, put them in quotes - e.g. "My Documents"
To remove directories, you used to be able to use deltree, but that's been removed from Windows XP. Try using del /s to remove subdirectories.
H
 
OP
OP
B

Bushboy

Chris
Joined
Oct 2, 2003
Messages
9,930
Location
Cheadle, Staffordshire
cheers you two! all gone :D

I just used the del /s "partials" to delete it.. hasnt deleted the folder but deleted everything in it. windows doesnt crash anymore :) bloody morpheus and dodgy files
 

custard

Status: DEFCON Grumpy
Joined
Nov 4, 2003
Messages
48,610
Location
Edinburgh
since this is a pc tech type thread i'll hijack.in my torrents folder there is a folder containing multiple .avi files.now when i try to delete it i get an error message.
"cannot delete name of file Data error(cyclic redundency check)"
just happended yesterday and most google searches relate to dvd burning.already rebooted and its not doing anything. reinstaled the torrent prog as well as it seemed a bit 'buggy'
 

PNL

Banned
Joined
Nov 11, 2005
Messages
17,870
Location
In my house
There were 300 viruses on this darn thing the other morning and I DONT LOG ON PORN some thing got in from Korea :eek:
 
Joined
Mar 29, 2005
Messages
5,034
Location
NW London
Delete it in DOS like bushboy did or click on the file and wait 60 seconds then Try Deleting it (works if the error is, file is being accessed by another program or currently in use)
 

Liam

hi friends :waves:
Joined
Mar 12, 2003
Messages
14,118
Location
Scotland
I've always encountered CRC's when reading discs and disks, you done a sector scan on your HDD?

Suppose you could benefit from a wipe and reload, remember the clusters thing you told me about Custard.

Liam
 
OP
OP
B

Bushboy

Chris
Joined
Oct 2, 2003
Messages
9,930
Location
Cheadle, Staffordshire
was a dodgy mp3.. it crashed morpheus first just as i clicked on it to download.. windows couldnt even browse the partials folder as it would crash explorer as soon as it even acknowledged it was there.. tried all sorts of free programs to mass delete stuff but of course, dos reigns supreme :)
 

arc

this is where i stand
Joined
Oct 8, 2003
Messages
19,719
Location
Manchester
custard boy said:
since this is a pc tech type thread i'll hijack.in my torrents folder there is a folder containing multiple .avi files.now when i try to delete it i get an error message.
"cannot delete name of file Data error(cyclic redundency check)"
just happended yesterday and most google searches relate to dvd burning.already rebooted and its not doing anything. reinstaled the torrent prog as well as it seemed a bit 'buggy'

scandisk the HDD. CRC is an error check, and if its failing it means the data is a bit corrupt. you may have an iffy sector, scandisk should be able to fix it.
 
Top