A few days ago, I posted:

----- Original Message -----
From: "Will Baldwin" <[EMAIL PROTECTED]>
To: "LifeRaft" <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 3:57 PM
Subject: [SurvPC] How to make DOS commands use long filenames?

<several paragraphs deleted>
>
> So, I tried to do this using a batch file, with logic like the following:
> for %%f in (*.*) do if exist %1%%f fc /b %%f %1%%f, where %1 is where I'm
> passing 'a:', to make the program compare the current files to the files
on
> a:
> Well, I've tried various versions of this, too, like adding quotes:
> for %%f in (*.*) do if exist %1%%f fc /b "%%f" %1"%%f
>
> Anyway, I can't seem to get it to work.  Then, suddenly, something in my
> memory tells me I once heard of a DOS switch, like 'Set LFN=1', or
> something, which will force DOS to work with long filenames, instead of
> short ones.  Does anyone know about this switch?  I just searched the DOS
> help file on my Win98 CD, and no mention is made of it.

Well, the mystery is solved.  On usenet, someone reminded me that the switch
is LFNFOR.  You can type LFNFOR ON or LFNFOR OFF, or LFNFOR /? to get the
help (Win9X).

The help says that this switch 'Enables/Disables Long file names when
processing For commands'.

I post this for anyone else who might have had their interest piqued.  Well,
I searched the entire DOS help file on the Win98 Cd, and no mention of it
was found.  I know also, that there are some reserved DOS environmental
variables, like DIRCMD, PATH, Prompt, Shell.  Well, I guess the last 2
aren't really environment variables.  I just wish there was a list of them,
somewhere, because I think there are more.

BTW, the full screen DOS help program that I use, is on the Win98 CD, in the
Tools/oldmsdos folder.  I just type 'Help' to get it.

Well, I just noticed that it is only for version 6.22, so I don't know of a
comprehensive help file for Win98 DOS, which, I guess is later than 6.22.
6.22 probably didn't have long file name support, so that explains why
LFNFOR wasn't in the help file.

Thanks to anyone who replied.

--
[EMAIL PROTECTED][EMAIL PROTECTED]
http://sites.netscape.net/baldwinwh/DOSPgms/DOSPgms.html   {:^>)

To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with 
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html

Reply via email to