Syntax error(missing operator)
Moderators: Jason Susnjara, Larry Epplin, Clint Buechlein, Scott G Vaal
-
- Junior Member
- Posts: 45
- Joined: Fri, May 18 2007, 9:40AM
Syntax error(missing operator)
How do you delete a file name with apostrophe in it. I renamed the file but can't delete the old name?
-
- Senior Member
- Posts: 193
- Joined: Tue, Jan 17 2006, 1:27AM
- Location: Pretoria, South Africa
Patrick,
You have to open up a DOS command line (I assume you are using XP?)
Click on start, then run. Type 'cmd' (without the quotes) and enter. This should open a command line window. Now you have to \"change directory\" to where the file is located.
Let's assume it is on the C: drive.
Type c: and enter.
Let's say it is located in c:\\program files\\thermwoord\\ecabinet systems\\jobs
Type in cd\\\"program files\\thermwoord\\ecabinet systems\\jobs\" and enter
NB: LOOK AT THE DOUBLE QUOTES. IT IS ESSENTIAL TO INCLUDE THE DIRECTORY PATH BETWEEN THEM. Any directory or filename that has special characters as part of the name must be included in double quotes to be able to address the name correctly. (Special characters are any character that is not \"a through z\")
Now that you are in the directory where the file is, you may delete it with:
del \"file name with apostrophy\"
Once again you include the filename between double quotes.
Or you could delete the file name with
del beginningOfFileName*
With this, you must make sure that there are not other files that start with the same name, otherwise you are going to delete them as well.
HTH
PS. If you are not sure then pm me and we'll walk through this.
You have to open up a DOS command line (I assume you are using XP?)
Click on start, then run. Type 'cmd' (without the quotes) and enter. This should open a command line window. Now you have to \"change directory\" to where the file is located.
Let's assume it is on the C: drive.
Type c: and enter.
Let's say it is located in c:\\program files\\thermwoord\\ecabinet systems\\jobs
Type in cd\\\"program files\\thermwoord\\ecabinet systems\\jobs\" and enter
NB: LOOK AT THE DOUBLE QUOTES. IT IS ESSENTIAL TO INCLUDE THE DIRECTORY PATH BETWEEN THEM. Any directory or filename that has special characters as part of the name must be included in double quotes to be able to address the name correctly. (Special characters are any character that is not \"a through z\")
Now that you are in the directory where the file is, you may delete it with:
del \"file name with apostrophy\"
Once again you include the filename between double quotes.
Or you could delete the file name with
del beginningOfFileName*
With this, you must make sure that there are not other files that start with the same name, otherwise you are going to delete them as well.
HTH
PS. If you are not sure then pm me and we'll walk through this.
Paul Ellis
"If it works, don't fix it"
"If it works, don't fix it"
-
- Senior Member
- Posts: 193
- Joined: Tue, Jan 17 2006, 1:27AM
- Location: Pretoria, South Africa
-
- Senior Member
- Posts: 193
- Joined: Tue, Jan 17 2006, 1:27AM
- Location: Pretoria, South Africa
-
- eCabinets Beta Tester
- Posts: 1740
- Joined: Tue, May 17 2005, 8:33PM
- Company Name: Timeless Cabinetry and Mantles
- Location: South East