Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

DOS Files

Original Message
Name: rljonz
Date: June 9, 2005 at 10:29:26 Pacific
Subject: DOS Files
OS: DOS 6.22
CPU/Ram: P2
Comment:
Anyone have an idea on how to access directories in DOS that have a <space> as the lead character for the name. For exapmle:

DOS <<<<< normal
Drivers <<<< normal
_Programs <<<< note the space before the name, I used an underscore, but it is actually a space.

I can not do anything these directories or there contents because I am unable to specify them correctly. Is there an ASCII character I need to enter?

Any help appreciated.

Thank you



Report Offensive Message For Removal


Response Number 1
Name: Valerie (by Garibaldi)
Date: June 9, 2005 at 15:11:33 Pacific
Subject: DOS Files
Reply: (edit)
Wrap the directory name in double quotes e.g. " spacfil"

cd " progfils"

etc...

Good luck


Report Offensive Follow Up For Removal

Response Number 2
Name: jboy
Date: June 9, 2005 at 18:25:25 Pacific
Subject: DOS Files
Reply: (edit)
Hey, it's 'Victor/Virginia'

DEL won't, I don't think, but DELTREE (or MOVE) should work with the quote technique

Life is hard; it's harder if you're stupid. -John Wayne


Report Offensive Follow Up For Removal

Response Number 3
Name: Valerie (by Garibaldi)
Date: June 9, 2005 at 20:52:36 Pacific
Subject: DOS Files
Reply: (edit)
Hey it's Valerie - not sis or bro

Report Offensive Follow Up For Removal

Response Number 4
Name: Nigel Spike
Date: June 10, 2005 at 02:09:14 Pacific
Subject: DOS Files
Reply: (edit)
I may be wrong here, but I feel sure that "space" is not a valid leading character in a directory name, so you will not be able to access it under the current name.
You can use the disk edit function in, for example, Norton Utilities or PC Tools to edit the directory entry and change it into a valid character, like a letter.

Nigel


Report Offensive Follow Up For Removal

Response Number 5
Name: jboy
Date: June 10, 2005 at 08:21:06 Pacific
Subject: DOS Files
Reply: (edit)
Sure, 3rd party tools will let you work with illegal filenames, but, as referenced in the linked M$ article, that's not necessary.

Life is hard; it's harder if you're stupid. -John Wayne


Report Offensive Follow Up For Removal


Response Number 6
Name: Nigel Spike
Date: June 10, 2005 at 09:05:44 Pacific
Subject: DOS Files
Reply: (edit)
As always you are correct jboy. The OP in this case however wanted to access the directory, not delete it :-)

Nigel


Report Offensive Follow Up For Removal

Response Number 7
Name: jboy
Date: June 10, 2005 at 09:22:29 Pacific
Subject: DOS Files
Reply: (edit)
Rename with MOVE would be the best bet.

Life is hard; it's harder if you're stupid. -John Wayne


Report Offensive Follow Up For Removal

Response Number 8
Name: Glitchman
Date: June 12, 2005 at 21:21:50 Pacific
Subject: DOS Files
Reply: (edit)
Contrary to popular belief, spaces are legal tokens for filenames in any form of FAT (FAT12, FAT16, FAT32) under MS-DOS. OS/2, for instance, is notorious for hiding system files on FAT partitions with names like "EA DATA. SF" and "WP ROOT. SF". I often use spaces in directory names (in addition to the 3 character extension.) As a result, I get no overhead on the file allocation table, while still having readable names in pure DOS. Directories with spaces are just a tad trickier to work with.

Obviously your directory cannot possibly be named " PROGRAMS", as that is 9 characters including the leading space. I will assume you meant " PROGRAM.S" for the time being since that is valid. Simply issue the following command in DOS 6.x:

REN ?PROGRAM.S NEWNAME

If that doesn't work, find a Windows 95 (or 98) boot disk, browse to the directory and issue the following:

REN " PROGRAM.S" NEWNAME

Most problems with seemingly "invalid" filenames can be resolved without the use of a disk editor.


Report Offensive Follow Up For Removal

Response Number 9
Name: Mechanix2Go
Date: June 13, 2005 at 00:28:31 Pacific
Subject: DOS Files
Reply: (edit)
Hard to to figure how these two are different:

copy[space][space]file
copy[space]file


Report Offensive Follow Up For Removal

Response Number 10
Name: Nigel Spike
Date: June 13, 2005 at 01:22:13 Pacific
Subject: DOS Files
Reply: (edit)
I wound be really surprised if you can use "REN ?PROGRAM.S NEWNAME" from Glitchmans response above, since

1. The filename has nine characters when only eight are possible/allowed.

2. A "?" in the beginning of the filename is a reserved character, to indicate to the OS that the file is deleted.

Unfortunatley I cannot try it out now, so I'm looking forward to see the outcome here.

Nigel


Report Offensive Follow Up For Removal

Response Number 11
Name: Mechanix2Go
Date: June 13, 2005 at 02:00:25 Pacific
Subject: DOS Files
Reply: (edit)
Hi Nigel,

Well...

I just did this:
***
C:\temp\->type nul > abc

C:\temp\->type nul > xbc

C:\temp\->ren ?bc ?bc.txt

C:\temp\->dir /s/b
C:\temp\-\abc.txt
C:\temp\-\xbc.txt
***
So in this case it's not so much a first char indicating a deleted file as a customary "wildcard".

I'm in NT CMD, but I'll bet money it acts the same in DOS.


M2


If at first you don't succeed, you're about average.


Report Offensive Follow Up For Removal

Response Number 12
Name: Nigel Spike
Date: June 13, 2005 at 14:25:39 Pacific
Subject: DOS Files
Reply: (edit)
I'll be damned, I really should have remebered that ;-)
I have to blame it on age I guess.


Report Offensive Follow Up For Removal

Response Number 13
Name: jboy
Date: June 14, 2005 at 08:50:05 Pacific
Subject: DOS Files
Reply: (edit)
"A "?" in the beginning of the filename is a reserved character, to indicate to the OS that the file is deleted."

No, it's the wildcard for a single character - although a few 'undelete' programs will show a question mark, the first character of a deleted file is the lower case sigma (HEX e5)

Life is hard; it's harder if you're stupid. -John Wayne


Report Offensive Follow Up For Removal

Response Number 14
Name: rljonz
Date: June 15, 2005 at 12:10:43 Pacific
Subject: DOS Files
Reply: (edit)
Wow, thanks for all the advice from all of you, but I still am unable to perform the task I am trying to complete.

Perhaps I should define what I am trying to do in more detail.

I have a DOS 6.2 machine that is being used to control a piece of equipment in a semiconductor fab. This tool, and the pc are about 10 years old, so the manufacturer offers basically no support for the software, or the tool. I am trying to copy the contents of the hard drive so as create a "backup" on my network.

I have been able to copy all system files and most directories using xcopy. However there are (4) directories that are hidden directories, that have a space, or hidden character as the lead character. So I can not copt these directories as xcopy only copies unhidden files. If I could change the attribute of the directory I could copy. but again I can not access then due to not knowing the correct name. I am sure the manufaturer of the tool did this to make them inaccessable, but I now have no support from them, and would like to access these (4) directories.

Hope this makes sense.

And thanks again for any and all advice.

rljonz


Report Offensive Follow Up For Removal

Response Number 15
Name: Mechanix2Go
Date: June 15, 2005 at 13:53:33 Pacific
Subject: DOS Files
Reply: (edit)
You can use the DRDOS xcopy to copy hidden files/directories.

DRDOS xcopy


M2


If at first you don't succeed, you're about average.


Report Offensive Follow Up For Removal

Response Number 16
Name: CoffeeBreak
Date: June 18, 2005 at 08:37:13 Pacific
Subject: DOS Files
Reply: (edit)
I am running WINNT4.0, SP6 and dual booting to MS-DOS6.22 with Windows for workgroups 3.11. My first questions would be, if the directories are hidden, how do you know their names and that the first character start with a space. I was trying to duplicate your situation. Using the File Manager with WINNT, I created (on my D drive) a directory _Dog (the underscore is really a apace). This version of file manager supports long file names. If fact, that is the default. Then went to "View," "All File Details" and file manager will show DOG~1 as the MS-DOS file name.

At the WINNT D:\> command prompt, I entered the "dir" command. Directory did not show up. Then,

attrib -H D:\?Dog and got "File not found - D:\?Dog Then,

attrib -H D:\" dog" and got D:\>. Then the "Dir" command and the _Dog directory show up (the underscore is really a apace).

If you want to, you can move and/or rename the directory using

move D:\" dog" D:\mydog

Change the directory back to dog (with the space thing and make it a hidden.

At a MS-DOS 6.22 D:\. prompt enter

attrib -H D:\>Dog~1

The directory can now been seen under DOS. Yes, it is possible to have a directory _Programs (the underscore is really a apace). But, the MS-DOS file name will be PROGRA~1.

Microsoft article ID: 142982 give some additional information on "How Windows Generates 8.3 File Names from Long File Names".

CoffeeBreak


Report Offensive Follow Up For Removal

Response Number 17
Name: Mechanix2Go
Date: June 18, 2005 at 08:42:28 Pacific
Subject: DOS Files
Reply: (edit)
Hi CoffeBreak,

Good stuff

M2


If at first you don't succeed, you're about average.


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: DOS Files

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




VGA Card in 386 clone - dip-switche

Video/Graphics problem

Ping on DOS 6.22

netgear, onelevel

Ping on DOS 6.22


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC