Welcome, Guest. Please login or register.

Author Topic: Giving WinUAE a spin (again) and...  (Read 7417 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Trev

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 1550
  • Country: 00
    • Show all replies
Re: Giving WinUAE a spin (again) and...
« on: August 31, 2004, 02:00:47 AM »
Quote

Holley wrote:
You can't have a file called 'aux' under PC OS's, and it won't keep all the file property bits either.


Sure you can (well, in NT anyhow):

C:\>attrib -s -h boot.ini

C:\>copy boot.ini \\.\c:\aux
        1 file(s) copied.

C:\>type \\.\c:\aux
[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional"
/fastdetect

C:\>del \\.\c:\aux

C:\>attrib +s +h boot.ini

C:\>


Filesystem objects in Windows NT/2000/XP/2003 are just like everything else in Windows' global object hierarchy; however, if you reference special files using their short names (COM1, AUX, PRT, etc.), they'll be treated as special files. If you reference them using their global name (\\.\:\), they'll be treated as plain files or directories.

Even so, WinUAE now uses name mangling and a file database for each directory, so you won't ever see a file called "AUX"--you'll see WinUAE's translation of the file name. I think file attribute mapping has been improved as well.

Trev