Get the file owner of a windows file?

Hi,
as a part of a bigger ODI project I'm designing a near-realtime and faultless (!) interface to load some excel files "human-generated" into an Oracle database DWH.
The idea is to use OdiFileWait in a package to trigger the ODI interface execution.
The command in the package will be like this:
OdiFileWait "-ACTION=MOVE" "-DIR=#MAT_WORK" "-PATTERN=#MAN_MASK" "-TODIR=#MAT_WORK" "-TOFILE=#MAN_DEST" "-CASESENS=NO" "-OVERWRITE=YES" "-FILECOUNT=1" "-TIMEOUT=10000" "-POLLINT=1000" "-HEADER=0" "-KEEP_FIRST_HEADER=YES" "-NOFILE_ERROR=YES"
Now, I need to know if there is a way to get the properties ("file name" and "owner" are a must) of the file before the OdiFileWait move it in the destination path.
The ODI Agent runs in a Windows Server and the work directories are in a Windows NTFS file system.
Thanks a lot in advance.
Imerio

A way would be to :
Issue an OS command
icacls * > filelist.csv
and then loop through this file to get the filename and the owner.
YOu can also do
dir /q > filelist.csv to get the list and ownership.
HTH

Similar Messages

  • Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?

    Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?
    I'm developing an application where a file is need to be saved as pdf. But, if there is already a pdf file with same name in the specified directory, I wish to overwrite it. And in the overwrite case, read-only files should not be overwritten. If the duplicate(old) file is opened in windows (Win7) explorer preview, it is write protected. So, it should not be overwritten. I tried to get the '
    FILE_ATTRIBUTE_READONLY' using MS API 'GetFileAttributes', but it didn't succeed. How Adobe marks the file as read-only for preview? Do I need to check some other attribute of the file?
    Thanks!

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

  • Itunes will not install. I get the error message "Error writing to file: C:\Program Files\Common Files\Apple\Mobile Device Support\com.apple.IE.client_main.dll     Verify that you have access to that directory."

    Itunes will not install. I get the error message "Error writing to file: C:\Program Files\Common Files\Apple\Mobile Device Support\com.apple.IE.client_main.dll     Verify that you have access to that directory."

    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get an install to go through properly afterwards?

  • C Programming: How can we get the filesystem name for a given file-path?

    C Programming: How can we get the filesystem name for a given file-path?
    Say I have a filepath=/mnt1/file1
    Using some OS API like stat, can I get the Filesystem /mnt ?
    Thanks in advance,
    -V

    Enter the command up to the point of entering the file path and add a space, then drag the file into the terminal window. It will fill out the path.
    If you need to go further into the contents of the Application package, you can continue with /Contents...
    Another way is to start typing and then hit Tab to auto-complete. It will stop where it can't determine the next letter.
    So, type /App tab and it will fill in /Applications. Type a / and start with the name of the app, then tab and it should complete. Continue till you have the correct path.
    Spaces will be replaced with \<space>, so, App Store would end up as /Applications/App\ Store.app

  • How to get the attribute value of an XML file??

    How to get the attribute value of an XML file??
    For example, how to get name and age attributes?
    <student name="Joe" age="20" />

    What are you using to read the XML file??
    On the assumption of JDOM - www.jdom.org. Something along the lines of:SAXBuilder builder = new SAXBuilder(true);
    Document doc = builder.build(filename);
    Element root = doc.getRootElement();
    List children = root.getChildren();
    Element thisElement = (Element)children.get(n);
    String name = thisElement.getAttributeValue("name")
    try
         int age = Integer.parseInt(thisElement.getAttributeValue("age"));
    catch (Exception ex)
         throw new InvalidElementException("Expected an int.....");
    }Ben

  • Reseting the Hashed Password after enabling Windows File Sharing

    Disclaimer: you'll need a good bit of knowledge about OS X, UNIX, and encryption to understand what I'm talking about.
    All right, so normally OS X hashes user passwords using a salted SHA1 encryption. It uses shadowing so that you can't obtain the actual hash value using "% nidump passwd".
    BUT, if you enable Windows File Sharing, all that changes. OS X re-hashes your password using the much less secure LANMAN encryption. This allows Windows machines to access your files. (LANMAN is what Windows used to encrypt passwords up through Windows ME. Later versions of Windows use NTLM instead, which is stronger.) This is why, the first time you enable Windows File Sharing, OS X warns you that enabling the feature will require your password to be stored in a less secure manner; it's downgrading the hash from SHA1 to LANMAN.
    My question is: I'm done sharing files with idiot Windows users - how do I force OS X to go back to storing my password using SHA1?
    Thanks guys.
    -Bryan

    Thanks biovizier. You're absolutely right, deleting the extra text after ";shadowHash;" and then reseting the password for the user's account does seem to force OS X to rehash the password using SHA1.
    Just in case someone else has this question in the future, here's how to verify that your password is hashed in SHA1:
    Log in as Root and open the /private/var/db/shadow/hash folder. You'll see files with long, weird names. You'll also see an XML file (with the extension *.state) for each of the files with long, weird names. The XML file contains several tags that tell OS X information about the hashed password - things like when it last logged on, when it was created, how many times login failed, etc.
    We're interested in the other files - the ones that don't end in ".state"
    To verify that SHA1 is being used, open the long, weird files in textedit. You should see something like this:
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000059G31HJ75BR54210P07Y57BC57094D643H78K8765L98C6X000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000
    There should be a few more zeros; I've cut some out here to save space.
    What should NOT exist, is the following:
    57Y083D243109VGR45Z4B65812R8M087H65HJ8OK95T89L8JHL9000000000
    000000000000000000000000000000000000000000000000000000000000
    0000000059G31HJ75BR54210P07Y57BC57094D643H78K8765L98C6X00000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    00000000000000000000000000000
    The second Hashed value does not start with zeros. This hash value is not SHA1. It is the less secure encryption method required for compatability with Windows.
    If your hash file opens with zeros, you're using SHA1. Otherwise, follow Biovizier's procedure: Open NetInfo, select the user account whose password needs to be changed back to SHA1, look at the "authentication_authority" value, make sure the value is set to ;ShadowHash; and that no additional text follows that string, then reset the affected account's password. You can then log back in as root and re-check the hash files using textedit and you should find that the hash file opens with solid zeros instead of letters and numbers.
    Do NOT manually edit the hash files in textedit. One of those files is the hash for the Root password. If you change that hash file, your root password will no longer work (because when you type MYPASSWORD, OS X will hash that string and find that the hashed value no longer matches the stored hash value in /private/var/db/shadow/hash and OS X will therefore reject your password as incorrect) and you will quickly find yourself locked out of your computer for good.
    And finally, just in case you have the computing power of the NSA and are thinking about running the hashes I've listed here: A) They aren't the right length; I've left some characters out and B) I randomly substituted different alphanumerics in for the ones in my real hashes with no rhyme or reason.
    Which brings me to another point: NEVER post your hashes online. Yes, it takes a TON of computing power to break them, but still, they're hidden away for a reason!
    Anyway, I hope this helps other security buffs out there.
    I'm going to make a suggestion to Apple that OS 10.5 be changed so that when you unclick "windows file sharing" the OS immediately rehashes your password in SHA1 again.
    -Bryan

  • When I try to open iweb I get the following message: Can't open file "~/Sites/NAVIGATOR/index.html." How do I fix this? Using 10.6.3 soon to be 10.6.6 and then Lion.

    When I try to open iweb I get the following message: Can’t open file “~/Sites/NAVIGATOR/index.html.” How do I fix this? Using 10.6.3 soon to be 10.6.6 and then Lion. I have never opened the product before and have had it on the computer since new.

    Go into your Users/Home/Library/Application Support/iWeb folder and see if there's a file titled Domain.sites.  If there is double click on it and see if iWeb opens.
    If there is no Domain file there do the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    OT

  • How do I get the java code from a class file ?

    I want to know how to findout the java code from a .class file . Is there any utility or any way to get the java code from a .class file. If so , please let me know the step by step procedure .
    Thanks
    Shiva

    Check out Mocha (http://www.brouhaha.com/~eric/computers/mocha.html)
    It's free!

  • I have an ipod touch (4th gen) and just bought a clock/charger/player.  It says I need ios 4.3.  I keep getting a message saying I can download 6.? but it will wipe out everything on my ipod.  Is there a way to get the ios without wiping out my files?

    I have an ipod touch (4th gen) and just bought a clock/charger/player. It says I need ios 4.3. I keep getting a message saying I can download ios 6.? but that it will wipe everything off my ipod.  Is there any way to get the ios without wiping out my files?

    There is no supported method to "downgrade" iOS on any device.  If you update, you will get the latest iOS for your device, which will be iOS 6.1.3.  You cannot go backwards to iOS 4.3
    If you have never backed up in either iCloud or iTunes, then upgrading to iOS 6.1.3 will involve restoring your device as part of the upgrade.  Without a backup to restore from, you will loose everything that is on it.
    You should first connect to iTunes with your computer, sync your device without upgrading and create an up to date backup of everything.  Then use the upgrade option in iTunes to update your iOS.
    However, if the dock device strictly requires iOS 4.3, it will not work, as you cannot downgrade iOS.  There simply is no mechanism from Apple to do that.

  • Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
    Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
    http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
    It might also help if you post the exact error message, including the path to the flv file.
    '''Note:'''
    Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information.

  • Since I signed up for icloud, I can't get into my iweb application. I get the following message   Can't open file "/Volumes/pnoon1/Band Stufff/Domain.sites2."

    Since I signed up for icloud, I can't get into my iweb application. I get the following message 
    Can’t open file “/Volumes/pnoon1/Band Stufff/Domain.sites2.”
    Any one have any clues ????

    Hi!
    I encountered a problem a few weeks ago which is a bit like yours. In my case my Apple ID stopped working after I upgraded to Mountain Lion. I finally found out it was because of the fact that my Apple ID has in fact been an alias within my much older MobileMe/iCloud account. And they weren't able to merge or reset the account at first. It took me a lot of mails and a few calls to get them to resetting the account and changing my Apple ID (for the Apple Store, iTunes, etc.) to a different, non-iCloud related email adress.
    Anyway, maybe you can call the Apple Support and kindly ask them to reset the password for this ominous @me.com account so you can finally start using it.
    Did you try logging into iCloud using your adress with the appendix @me.com because not everybody has got the @icloud.com ending yet. Technically it's no problem to create a new iCloud account. I can understand though that you'd like to get "your name" back .

  • HT5132 I have deactivated my mobile me, I've switched to iCloud. I have no albums to update but I still get the pop-up sign to move files, it locked up Aperture. I had to restore my Aperture files, I've restarted and it still wants me to move files.

    I have deactivated my mobile me, switched to iCloud. I have no albums to update but I still get the pop-up sign to move files, it locked up Aperture. I had to restore my Aperture files, I've restarted and it still wants me to move files. Anyone have any suggestions?

    Quit - or force quit - Aperture, if it is still trying to transfer MObile Me content.
    Then relaunch. When the "Mobile Me has ended" panel appears press the "Learn More" button, not the "o.k." button.
    Then you should be able to open the Preferences in Aperture and and open the "Web" panel. Remove "Mobile Me" from the Accounts pane.
    Then also open the System preferences > Mobile Me panel and check if you are still signed into Mobile Me.
    If this does not work, try to disconnect from the Internet before you launch Aperture again.
    Regards
    Léonie

  • I am getting the msg "data corrupted" from windows installer, attempting to install photoshop elements 12

    I am getting the msg "data corrupted" from windows installer, attempting to install photoshop elements 12. have wiped drive of file and redownloaded but get same results. have run regedit and removed Photoshop elements 12 also with no luck. Went back and installed photoshop elements 10 and prerimer and installed good, I have also installed prerimer elements 12 and the install was ok. I also ran trial version of photoshop 13 without any issues. I am at a lost to what is causing this issue. Any suggestions please.

    You can download the trial version of the software thru the page linked below and sidestep the download assistant.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    Photoshop/Premiere Elements 12: http://prodesigntools.com/photoshop-elements-12-direct-download-links-premiere.html

  • While updating my iphone 4s to ios6, I had to restore it. Now every time I connect to itunes, I get the "Set Up Your iPhone" window with the set up as new iphone and restore from backup options. After the restore, I got everything except my apps back.

    While updating my iphone 4s to ios6, I had to restore it. Now every time I connect to itunes, I get the "Set Up Your iPhone" window with the set up as new iphone and restore from backup options. After the restore, I got everything except my apps and music back. Do I need to set the phone up as new again?

    Hi Vidbrent,
    If you are having issues updating or restoring your iPhone, you may find the following article helpful:
    Apple Support: If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Regards,
    - Brenden

  • Get the title of a specific window not part of your app

    For an app I am writing I need to get the name of the titles of the current programs running .
    Does anyone know of a way to accomplish this (get the title of a specific window not part of your app) in Java?
    Thank you very much.
    Erik

    Crossposted, obviously with no concern over wasting the time of would-be answerers.
    http://forum.java.sun.com/thread.jspa?threadID=686650

Maybe you are looking for

  • What games from the app store can i buy & play on 13" macbook air???

    Hey i just got a new 6/2012 macbook air and love it. just wanted to get some games for it. and ive gone to the app store, but alot of the good games require certain graphics cards etc... can anyone tell me what games i can download and play?? as its

  • Error during Cancellation Of Invoice in MR8M

    Dear All,           While canceling a MIRO document in MR8M one error is coming as "Inconsistent temporary document number assignment" Message no. F5726.           This error is coming now in a production server which has been running from last 6 mon

  • IDVD burning Probs

    I am having some (well loads) of problems trying to get something out of Idvd (version 5.0.1). Each time I send something to burn I either have the whole process hang forever with the spinning cd; or it comes up with a message relating to multiplexin

  • I am a lost Photoshop Soul....

    Ok. I could not open my NEF files. I looked at what version I was using and it was 4.0 I shoot with a Nikon D300.....so I need the 4.3 version or above. This much I know. But when I pull 4.0 onto my desktop and replaced it with 4.3 (tried 4.6 but tha

  • Need help laptop has rolling reboots

    I have a satelite M115-s1051.  I checked on the toshiba website before ordering 2 - 1GB sodimms. When i got them and installed them the laptop wouldnt respond. it just starts up them at post it reboots and keeps repeating the cycle. the monitor never