Computing.Net > Forums > Windows 2000 > Windows 2000 dir command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Windows 2000 dir command

Reply to Message Icon

Name: Ari1956
Date: November 17, 2006 at 09:44:38 Pacific
OS: Windows 2000
CPU/Ram: Celeron 1.2 GHz 256M
Product: HP Vectra VL410
Comment:

We have a IBM z/OS (mainframe) application
which sends files to pc. The files shoud be
handled in pc by a Basic program (and then sent to printer, thru LPR command, no spooling) in the same order as the mainframe creates them. So the oldest file should be printed first.

Mainframe user is packing about 10 mail order parcels and then the user, with CICS transaction, sends those 10 packing list files to pc, windows 2000. It is possible to send all these files within one (and the same) minute.
The printer does not print the files in correct order. I have set in a pc program the dir time sort order to /OD.
Windows NT 4.0 used to handle the files in correct order.
How can I fix this in Win 2000?
Do I need a dir listing program instead of using DIR ? Are there any?
The dir command does not show minutes and seconds, but in an XP the command dir /OD seems to work, too. In my home pc (XP) I tested dir, and I noticed that I must first
destroy the DIRCMD environment setting. DIRCMD is not set in the Win 2000 pc, which is in production.




Sponsored Link
Ads by Google

Response Number 1
Name: don2006
Date: November 17, 2006 at 15:23:49 Pacific
Reply:

What about the sort command?


0

Response Number 2
Name: don2006
Date: November 17, 2006 at 15:25:31 Pacific
Reply:

I just thought of something else. If sort by itself doesn't work, you could pipe one to the other or make a batch file if windows doesn't handle pipes.


0

Response Number 3
Name: Mechanix2Go
Date: November 18, 2006 at 01:05:09 Pacific
Reply:

That's an interesting problem. As long as there's problems they may as well be interesting.

A little admittedly unscientific testing seems to indicate that DIR /OD "knowa about" the seconds ticker. If so, you should be able to send the files to printer in the date order.

This bat creates a few files, waits 1.5 seconds, updates the time stamp on one of them. Notice that file 2 moves to bottom after time stamping. AFAIK DIR /OD does not know about the 1/100ths ticker, so if you files are less than one second apart, you probably out of luck.

HTH

::== tryDATES.bat
@echo off

for /L %%N in (1 1 5) do (
type nul > %%N
)
dir /od|find "2006"
ping 0.0.0.2 -n 1 -w 1500 > nul
copy 2,,+ > nul
dir /od|find "2006"
:: DONE



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

M2



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Windows 2000 dir command

Windows 2000 reboots randomly on install www.computing.net/answers/windows-2000/windows-2000-reboots-randomly-on-install/65839.html

Windows 2000 www.computing.net/answers/windows-2000/windows-2000/65860.html

Boot Disk For Windows 2000 www.computing.net/answers/windows-2000/boot-disk-for-windows-2000/11366.html