PC Review


Reply
Thread Tools Rate Thread

Directory Listings in DOS Windows

 
 
rsupansic@libcom.com
Guest
Posts: n/a
 
      9th Nov 2006
I am running dBase IV in a DOS window under Windows 2000. I need
access to both the long and short (8.3) filenames in directory listings
from within dBase.

In a straight DOS Window, the DIR command can be run with all of the
Win2000 switches, for example DIR /X. This generates listings with
both long and short filenames.

>From within dBase, attempts to invoke the DOS DIR command using the

Win2000 switches generates an error. DIR /X fails. Furthermore,
unlike Win98, a plain vanilla DIR loses the long filenames.

Is there any way around this? Is it possible to use the Win98 command
interpreter? And if it is, would it make a difference in this
situation?

Thank you in advance for any assistance.

 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      10th Nov 2006

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am running dBase IV in a DOS window under Windows 2000. I need
> access to both the long and short (8.3) filenames in directory listings
> from within dBase.
>
> In a straight DOS Window, the DIR command can be run with all of the
> Win2000 switches, for example DIR /X. This generates listings with
> both long and short filenames.
>
> >From within dBase, attempts to invoke the DOS DIR command using the

> Win2000 switches generates an error. DIR /X fails. Furthermore,
> unlike Win98, a plain vanilla DIR loses the long filenames.
>
> Is there any way around this? Is it possible to use the Win98 command
> interpreter? And if it is, would it make a difference in this
> situation?
>
> Thank you in advance for any assistance.
>


You need to become aware that there is no DOS under
Windows. DOS is an operating system, same as Linux
or Windows. You probably mean the Command Prompt.

If dBase refuses to run dir /x then this is probably because
it uses its own internal interpretation of the "dir" command.
Instead of running "dir", try invoking one of the two command
processors. AFAIR, you can do this under dBase. The
commands would be:

c:\winnt\system32\cmd.exe /k dir c:\ (preferred)
c:\winnt\system32\command.com /d dir c:\ (legacy)


 
Reply With Quote
 
rsupansic@libcom.com
Guest
Posts: n/a
 
      14th Nov 2006

Pegasus (MVP) wrote:

> c:\winnt\system32\cmd.exe /k dir c:\ (preferred)


That was the clue I needed.

In my specific application, CMD /C is what I actually needed. The /C
switch exits the shell and returns to the calling program as soon as
the command string finishes execution.

As it turns out, this did not solve all of my problems. I was calling
PKZIP 2.50 in the shell and was unable to get it to deal with long file
names. I found the INFO-ZIP utilities on the internet and substituted
them; they work perfectly.

Thank you, Pegasus.

 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      14th Nov 2006
Thanks for the feedback.


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Pegasus (MVP) wrote:
>
> > c:\winnt\system32\cmd.exe /k dir c:\ (preferred)

>
> That was the clue I needed.
>
> In my specific application, CMD /C is what I actually needed. The /C
> switch exits the shell and returns to the calling program as soon as
> the command string finishes execution.
>
> As it turns out, this did not solve all of my problems. I was calling
> PKZIP 2.50 in the shell and was unable to get it to deal with long file
> names. I found the INFO-ZIP utilities on the internet and substituted
> them; they work perfectly.
>
> Thank you, Pegasus.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Details in Windows Explorer directory listings =?Utf-8?B?Um9uIFUu?= Windows XP General 3 4th Dec 2005 01:32 PM
Directory listings tgoodner Microsoft Windows 2000 Advanced Server 0 23rd Aug 2004 09:28 PM
How do I print Directory Listings when using Windows Explorer? =?Utf-8?B?SmVmZnJleSBTaW1vbg==?= Windows XP Basics 4 3rd Jan 2004 07:09 AM
Slow directory listings tom e Windows XP Help 0 5th Dec 2003 08:29 PM
unable to see directory listings deadheadfred Windows XP Security 0 2nd Oct 2003 08:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:14 AM.