Soldato
Hey Guys
I have a bit of an interesting problem I can't figure out
I use Robocopy here at work to backup various bits of test data from the C drive of a PC to a shared network drive. The script is automatically run when a user logs off.
I've just modified the script to point to a new location,however I've noticed I made a slight keyboard error when writing the script and the result has created a folder that cannot be deleted, renamed or moved etc lol
Here's an example of the mistake I made:
robocopy "c:\test data" "\\server\test data\" /MIR /E /COPYALL /PURGE /V /NP /R:1 /W:30
As you can see, I added in an extra \ to the end of the location I'm backing up to by mistake, and as a result I now have a folder called test data" (notice the " at the end) that has a folder called /MIR in that, a folder called /E in that and so on. I can see these folders, I can even navigate into them, explorers address bar just shows:
M:\test data" \MIR \E \COPYALL \PURGE \V \NP
The issue here is that the single " that shouldnt be allowed in the name of a folder or file seems to be stopping me from doing anything with the folder! I can't delete the folder without an error "cannot read from source disk", I can't rename the folder cos I get the same error, if I try and de-select it after attempting to rename it I get an error complaining I'm not allowed to use \ / * " in the folder name lol
Does anyone have any idea's on how I can delete this folder?
I have a bit of an interesting problem I can't figure out
I use Robocopy here at work to backup various bits of test data from the C drive of a PC to a shared network drive. The script is automatically run when a user logs off.
I've just modified the script to point to a new location,however I've noticed I made a slight keyboard error when writing the script and the result has created a folder that cannot be deleted, renamed or moved etc lol
Here's an example of the mistake I made:
robocopy "c:\test data" "\\server\test data\" /MIR /E /COPYALL /PURGE /V /NP /R:1 /W:30
As you can see, I added in an extra \ to the end of the location I'm backing up to by mistake, and as a result I now have a folder called test data" (notice the " at the end) that has a folder called /MIR in that, a folder called /E in that and so on. I can see these folders, I can even navigate into them, explorers address bar just shows:
M:\test data" \MIR \E \COPYALL \PURGE \V \NP
The issue here is that the single " that shouldnt be allowed in the name of a folder or file seems to be stopping me from doing anything with the folder! I can't delete the folder without an error "cannot read from source disk", I can't rename the folder cos I get the same error, if I try and de-select it after attempting to rename it I get an error complaining I'm not allowed to use \ / * " in the folder name lol
Does anyone have any idea's on how I can delete this folder?