BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 10d, 0h, 47m | CPU: 9% | MEM: 4190MB of 8191MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 12 posts ] 
Author Message
 PostPost subject: MS-DOS directory names with spaces help?        Posted: Fri Mar 17, 2017 2:53 am 
Reply with quote
Offline

Joined
Mon Mar 21, 2016 12:55 am

Posts
22

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...


Top  Profile
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Fri Mar 17, 2017 9:08 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Thu Oct 25, 2012 8:19 pm

Posts
1760

Location
shell32.dll
"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?


Top  Profile
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Fri Mar 17, 2017 10:01 pm 
Reply with quote
FTP Access
User avatar
Offline

Joined
Tue Feb 28, 2017 10:21 pm

Posts
40

Location
C:\Users\JackArchive\

Favourite OS
Windows 98 SE 4.10.2222 B
Wheatley wrote:
"Surround the directory in quotes."

Yeah, just surround in quotes (Yeah that's for Windows and not DOS; I misinterpreted that one). Also, on UNIX or any system based on it, backslashes\ are\ used\ if\ I\ remember\ correctly.

_________________
-=JackArchive=-
Preserving since the last time we all partied like it's 1999...


Last edited by JackArchive on Sat Mar 18, 2017 1:39 am, edited 1 time in total.

Top  Profile
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Sat Mar 18, 2017 12:36 am 
Reply with quote
FTP Access
Offline

Joined
Sun Aug 18, 2013 7:26 pm

Posts
204

Location
Edinburgh, Scotland

Favourite OS
Windows for Workgroups 3.11
Wheatley wrote:
"Surround the directory in quotes."

Just because DOS looks like a Windows command prompt, that doesn't mean it understands quotes.


Top  Profile
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Sat Mar 18, 2017 1:27 am 
Reply with quote
Offline

Joined
Mon Mar 21, 2016 12:55 am

Posts
22

Location
Frisco, TX

Favourite OS
Windows 7
xelloss wrote:
Wheatley wrote:
"Surround the directory in quotes."

Just because DOS looks like a Windows command prompt, that doesn't mean it understands quotes.

Thank you! Every solution I've found upon Google searching was meant for Windows CMD, and like you said, quotes don't work in DOS! It throws up something along the lines of, "Unknown parameters"

_________________
Wake me up when Chicago build 34 leaks or something...


Top  Profile
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Sat Mar 18, 2017 1:58 am 
Reply with quote
Staff
User avatar
Offline

Joined
Sat Aug 19, 2006 8:13 am

Posts
1791

Location
Slovenia, Central Europe.

Favourite OS
Windows 98 SE 4.10.2222B
You can't get around that. Recreate the ISO without long file names.

_________________
Join #softhistory @ RoL IRC, a nice community for true enthusiasts!
Anime channel: #doki-doki @ RoL IRC, Mibbit, KiwiIRC.
PCem help channel is #softhistory now!

Check out our SoftHistory Forum for quality discussion about older software.


Top  Profile  WWW  ICQ  YIM
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Sat Mar 18, 2017 2:04 am 
Reply with quote
Offline

Joined
Mon Mar 21, 2016 12:55 am

Posts
22

Location
Frisco, TX

Favourite OS
Windows 7
That's what I was afraid of. Thanks for the help!

_________________
Wake me up when Chicago build 34 leaks or something...


Top  Profile
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Sat Mar 18, 2017 2:40 am 
Reply with quote
FTP Access
Offline

Joined
Sun Aug 18, 2013 7:26 pm

Posts
204

Location
Edinburgh, Scotland

Favourite OS
Windows for Workgroups 3.11
Battler wrote:
You can't get around that. Recreate the ISO without long file names.

Actually, he could XCOPY the content of the CD to the hard drive, then rename directories using wildcards like this:

C:\>MOVE A?NAME A_NAME

c:\a name => c:\a_name [ok]

Of course this cannot be done on readonly media.


Top  Profile
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Sat Mar 18, 2017 4:58 am 
Reply with quote
FTP Access
Offline

Joined
Sat Feb 04, 2017 12:59 am

Posts
28

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.


Top  Profile
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Sat Mar 18, 2017 9:43 am 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1083

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.


Top  Profile  WWW
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Wed Sep 27, 2017 10:02 pm 
Reply with quote
Offline

Joined
Wed May 28, 2014 12:28 pm

Posts
5
I am afraid a file named "testfile123456.txt" -> "testfi~1.txt"
And a directory "oldjoessecretdokuments" would be "oldjoe~1"


Top  Profile
 PostPost subject: Re: MS-DOS directory names with spaces help?        Posted: Thu Sep 28, 2017 1:20 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1083

Location
Brisbane, Queensland

Favourite OS
OS/2 Wrp 3.0
DOS itself would not see long file names. If you put oldjoesecretdocuments on a cdrom, DOS simply would not see it. Even the Windows 9x command.com can't see the full long file name under DOS.

The joliet file system was supposed to get around this series.

You could use something like ldir and lren to work around this.


Top  Profile  WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 




Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2017

 

Sitemap | XML | RSS