glutenous Posted September 21, 2007 Share Posted September 21, 2007 I accidentally saved a file in DOS with a space in the file name. Now when I try to copy or access the file I am told that there are too many parameters. Is there any way for me to access or copy this file? Please help, this is a very important file. Thank to all in advance. Link to comment Share on other sites More sharing options...
cluberti Posted September 21, 2007 Share Posted September 21, 2007 File names in DOS are 8.3, so the name likely has a tilde (~) and a number in it. If you run "dir /a" in the directory the file is in, it should show you the actual file name you can use to open or copy the file. Link to comment Share on other sites More sharing options...
darcmatter Posted September 21, 2007 Share Posted September 21, 2007 Try the following:You could also try to enter the name of the file with the ascii equivalent of a space I believe its atl+255 to produce a space.ie:my file.txt you would type my and then you would hold down the alt key on the keyboard and enter 255 on the numeric pad; let go of the keys and type the rest of the file name. Link to comment Share on other sites More sharing options...
IcemanND Posted September 21, 2007 Share Posted September 21, 2007 place the filename within quotes.del "my file.txt" Link to comment Share on other sites More sharing options...
jcarle Posted September 21, 2007 Share Posted September 21, 2007 Try the following:You could also try to enter the name of the file with the ascii equivalent of a space I believe its atl+255 to produce a space.ie:my file.txt you would type my and then you would hold down the alt key on the keyboard and enter 255 on the numeric pad; let go of the keys and type the rest of the file name.ASCII 255 is not ASCII 32. Link to comment Share on other sites More sharing options...
Ponch Posted October 20, 2007 Share Posted October 20, 2007 (edited) I'm a bit late on that one but you can rename the file using a wild card:if you have for instance "my file.txt", type"ren my*.* file.txt"and you end up with "file.txt" Edited October 20, 2007 by Ponch Link to comment Share on other sites More sharing options...
Idontwantspam Posted November 4, 2007 Share Posted November 4, 2007 ? would be a better wild card since you know it's only one character, and you don't want to screw up any other files in the directory. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now