Post subject: MS-DOS directory names with spaces help? Posted: Fri Mar 17, 2017 2:53 am
Joined Mon Mar 21, 2016 12:55 am
Location Frisco, TX
Favourite OS Windows 7
So I'm screwing around with an old All-In-One Windows ISO from 2003 that contains every version of Windows up to Server 2003, and the directory names in this ISO have spaces, which doesn't allow me to get to that directory in DOS. Can someone tell me how to get around spaces in DOS directories?
_________________ Wake me up when Chicago build 34 leaks or something...
Post subject: Re: MS-DOS directory names with spaces help? Posted: Fri Mar 17, 2017 9:08 pm
Joined Thu Oct 25, 2012 8:19 pm
Favourite OS Gentoo, FreeBSD
"Surround the directory in quotes."
_________________ Windows Defender for great justice! Bugs are an international trading company. I need to defeat the anti-debugging and obfuscation methods. It wasn't for Intel's absurd ability to load in ie6. Why even waste time with people in an envelope?
Post subject: Re: MS-DOS directory names with spaces help? Posted: Sat Mar 18, 2017 4:58 am
Joined Sat Feb 04, 2017 12:59 am
Favourite OS Debian Linux Stable
When LFN support first came out it still needed to be backwards compatible with DOS so LFNs would be stored also as something like SHORTN~1. If you're accessing the disc from an old enough version of DOS that it doesn't support LFN you should be able to see those short names in the directory listing. If the directory listing shows the longer names including spaces then the version of DOS you're using supports accessing LFNs and you should be able to put quotes around the name.
Post subject: Re: MS-DOS directory names with spaces help? Posted: Sat Mar 18, 2017 9:43 am
Joined Sun Dec 30, 2007 8:12 am
Location Brisbane, Queensland
Favourite OS OS/2 Wrp 3.0
You can access spaces under the CMD prompt of OS/2 or Windows, but DOS is different to just the 'command prompt'.
Microsoft called the CMD prompt the 'dos prompt', and people have been confusing the two eversince. Under OS/2, there's an 'os/2 prompt' and a 'dos prompt', and no one ever confused the two.
You can generally manipulate spaces if the command supports wild cards, eg 'ren WP?DATA.?SF WP_DATA._SF. If you can't use wild-cards, it's really a no-go. Even using rabbit-ears won't work. You would be better off using something like an OS/2 prompt.
Another thing is that browsing with COMMAND.COM won't show directories that don't fit 8.3, even if there is no spaces. eg, DOS won't change to a directory WORKPLACE, because that has 9 letters, and most DOS versions don't understand the VLFN hack of microsoft dos 7+.
If you really want to fiddle with directories under DOS, you need to pull them with an NT or OS/2 or linux command. Make sure it understands the joliet or rock-ridge extensions to the cdrom.