Retrieve Owner from NTFS

Discussion in 'AutoCAD' started by dean_bourke, Feb 18, 2005.

  1. dean_bourke

    dean_bourke Guest

    Is there anyway to retrieve the owner of a file (on an NTFS partiton) through lisp?

    I have a very crude way by sending the dir to a temp file command and reading the temp file, but this is way to slow.

    dean
     
    dean_bourke, Feb 18, 2005
    #1
  2. dean_bourke

    Josh Guest

    In Windows Scripting the main bit of code you use:
    objFolder.GetDetailsOf(strFileName, 26)

    strFileName is the file name and 26 is the code for 'owner'.

    More info here
    Microsoft Windows 2000 Scripting Guide > Scripting Solutions for System
    Administration > Files and Folders > Files and File Objects > Enumerating
    Files and File Properties

    Check this NG for references on using WSH via vlisp....Tony Tanzillo, in
    particular....and examples on how you might implement this. Sorry, I know
    only enough to find the parts of the answer you seek but not enough to give
    you the whole answer. ~:)

    Josh

    reading the temp file, but this is way to slow.
     
    Josh, Feb 18, 2005
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.