Detect an open file on a share before the folder is moved

I'm adding an archive feature to a labview application.
It will archive all the files and subdirectories within the directory I point to.
My challenge is as follows: The directory is on a network share drive so before the VI moves the directory to the archive location it needs to know if any files are open.  If any are open then it would try again later.  If the labview move function errored out before it moved a directory with open files it would be the perfect solution but it doesn't function this way - it errors after it moves everything except the open files.  Moving all closed files then moving the others when they become available isn't an option for me.
In researching this it appears I need to access some kind of network management interface to get this info. 
Does anyone know what resource I could use for this?  I thought "active directory services", accessed through .net, but it seems "user centric (namespace)" not file status centric - not sure though - haven't worked with ADS much and find it less than user friendly to research.
I figure there has to be some mechanism I can hook into programmatically as a network client to check if any files within a directory are open.
My application will run on a network client and I don't have access to the server/s hosting the share.
I'm sure others have encountered this situation or maybe you could point me to another forum for this?
Cheers,
Christopher

Hi Cristopher,
It seems like the best way to achieve this functionality would be to use two steps. First, check if any of the files in the directory are open, then create the archive only if none of the files are found to be open.
You may want to check out the following page: How Can I Check if a File is Already Open? The issue of checking for applications being run on different machines within a network is addressed there, so it may be a good resource for you. There are also several other Knowledge Base and Developer Zone articles linked to that page that should be helpful.
I hope that helps!
Matt
Product Owner - NI Community
National Instruments

Similar Messages

  • I keep getting the same message when I try to open files on Internet.  Before viewing doc must agree

    I keep getting the same message when I try to open files on Internet.  Before viewing doc must agree to end license agreement & Quit & relauch browser. I've done this.over & over.  Now what?

    Test Screen Name wrote:
    When you launch Adobe Reader you should get the license agreement.
    - Do you get the license agreement?
    When you launch Adobe Reader you should NEVER get a message that it is already installed. That would mean you were trying to install it. NOT launch it.
    I agree.
    Installer:
    Application:
    If you're launching the first one... you're trying to reinstall it.

  • I saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    i saved a word file onto my imac.  when i go to open file in documents with pages the file is grey and unable to open.  the workable files are highlighted in bold.  is there a way to open this file????

    THis is safe for Mac's? Sorry, I have just never heard of this site before.
    And there are literally tens of thousands of sites of which I've not heard, too. Not this one.
    It's legit. There are lots of links in Apple Support Communities to the LibreOffice web site, as well as others that are legitimate open-source developers of options to buying MS Office, such as NeoOffice and OpenOffice. I have Open Office installed on one of my older Macs that can't run Office 2011 and it is rock-solid.
    I've been here too long to start posting bogus urls now.

  • I have a problem - the program QuickTime player longer open files - gororit that codec for the opening of the program at all of the files that I opened have the extension avi. tried to remove a program, it is impossible.I tried to load the program fr

    I have a problem - the program QuickTime player longer open files - gororit that codec for the opening of the program at all of the files that I opened have the extension avi. tried to remove a program, it is impossible.I tried to load the program from Apple, reinstalled. but I was wrong still going on! what to do?

    before using for all entries in, u need to check whether the driver internal table is empty, if it is empty, u should not enter into select statement.
    if u wont use this check means, when the driver internal table is empty, the second select will take all the entires from the tables.
    SELECT  AEBELN ALIFNR AKNUMV BVGABE BEBELP BGJAHR B~BELNR
            FROM  EKKO AS A
            INNER JOIN EKBE  AS B ON  BEBELN = AEBELN
            INTO  CORRESPONDING
            FIELDS OF TABLE ITAB WHERE B~VGABE = '2'.
    if itab[] is not initial.
       SELECT EKPOEBELN EKPOMATNR EKPOTXZ01 EKPOWERKS EKPO~NETWR
              EKPOMENGE EKPOMWSKZ
          FROM EKPO
          INTO CORRESPONDING FIELDS OF TABLE ITAB1
          FOR ALL ENTRIES IN ITAB
          WHERE EBELN = ITAB-EBELN.
    endif.
    I hope this will help u.
    else,
    Sujatha.

  • Open/file in CS6 only shows the blue psd file.  I want to see what it looks like if open.

    Open/file in CS6 only shows the blue psd file.  I want to see what it looks like if open.
    I posted this earlier, but now I can't find it in the forum?

    You could use Bridge, or depending on your operating system, use one of the codec packs that let you view PSD thumbnails in Windows Explorer.  (I don't know OSX)
    This seems like a popular choice for Windows 7
    http://www.softpedia.com/get/System/OS-Enhancements/SageThumbs.shtml
    Personally, I just use Bridge, but I can see how an app like Sage Thumbs would be useful

  • ORA-01190: control file or data file 1 is from before the last RESETLOGS

    hi, experts.
    i have oradb 11g and using it for OIM11
    after some actions in oim i try to get my db to previous state (many times it was done successfully)
    but now i have problem ORA-01190: control file or data file 1 is from before the last RESETLOGS
    im runing in noarchivelog mode
    i have autobackup of controlfile and i have 2 backups of my db
    please help me
    maybe some one know how to restore my backup to new db and then change configuration of wls and oim...

    Hi, Thanks for reply
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    1       1       OIMDB    2372279074       PARENT  1          02-APR-10
    2       2       OIMDB    2372279074       PARENT  940976     11-JUL-11
    3       3       OIMDB    2372279074       PARENT  5590849    09-AUG-11
    4       4       OIMDB    2372279074       PARENT  5590850    10-AUG-11
    5       5       OIMDB    2372279074       PARENT  5596482    11-AUG-11
    7       7       OIMDB    2372279074       PARENT  5596483    11-AUG-11
    8       8       OIMDB    2372279074       PARENT  5596484    12-AUG-11
    6       6       OIMDB    2372279074       ORPHAN  5622931    11-AUG-11
    9       9       OIMDB    2372279074       PARENT  5627526    18-AUG-11
    10      10      OIMDB    2372279074       PARENT  5627527    18-AUG-11
    11      11      OIMDB    2372279074       ORPHAN  5627528    18-AUG-11
    12      12      OIMDB    2372279074       CURRENT 5627528    18-AUG-11
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    9       Full    1.50G      DISK        00:00:31     12-AUG-11
            BP Key: 9   Status: AVAILABLE  Compressed: NO  Tag: TAG20110812T114515
            Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_12\O1_MF_NNNDF_TAG20110812T114515_749PJDCW_.BKP
      List of Datafiles in backup set 9
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSTEM01.DBF
      2       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSAUX01.DBF
      3       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\UNDOTBS01.DBF
      4       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\USERS01.DBF
      5       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIMLOB.DBF
      6       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_IASSDPM.DBF
      7       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_MDS.DBF
      8       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_SOAINFRA.DBF
      9       Full 5627525    12-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIM.DBF
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    10      Full    9.36M      DISK        00:00:01     12-AUG-11
            BP Key: 10   Status: AVAILABLE  Compressed: NO  Tag: TAG20110812T114515
            Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_12\O1_MF_NCSNF_TAG20110812T114515_749PKJJS_.BKP
      SPFILE Included: Modification time: 12-AUG-11
      SPFILE db_unique_name: OIMDB
      Control File Included: Ckp SCN: 5627525      Ckp time: 12-AUG-11
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    11      Full    1.33G      DISK        00:00:26     16-AUG-11
            BP Key: 11   Status: AVAILABLE  Compressed: NO  Tag: TAG20110816T094954
            Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_16\O1_MF_NNNDF_TAG20110816T094954_74N183D7_.BKP
      List of Datafiles in backup set 11
      File LV Type Ckp SCN    Ckp Time  Name
      1       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSTEM01.DBF
      2       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\SYSAUX01.DBF
      3       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\UNDOTBS01.DBF
      4       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\USERS01.DBF
      5       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIMLOB.DBF
      6       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_IASSDPM.DBF
      7       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_MDS.DBF
      8       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_SOAINFRA.DBF
      9       Full 6118204    16-AUG-11 D:\APP\999-ILYASOV\ORADATA\OIMDB\DEV_OIM.DBF
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    12      Full    9.36M      DISK        00:00:01     16-AUG-11
            BP Key: 12   Status: AVAILABLE  Compressed: NO  Tag: TAG20110816T094954
            Piece Name: D:\APP\999-ILYASOV\FLASH_RECOVERY_AREA\OIMDB\BACKUPSET\2011_08_16\O1_MF_NCSNF_TAG20110816T094954_74N197JO_.BKP
      SPFILE Included: Modification time: 16-AUG-11
      SPFILE db_unique_name: OIMDB
      Control File Included: Ckp SCN: 6118204      Ckp time: 16-AUG-11How to reset database to right incarnation.?

  • Do I not get the "open file after publishing" checkbox with the trial version?

    I owned the Adobe Acrobat 8 Professional version on my pc, and recently bought a Mac. Do I not have the option to "Open file after publishing" checkbox with the trial version? Do I have to repurchase the whole program to get that?

    uninstall.
    download from prodesigntools.com.
    if you follow all 7 steps you can directly download a trial here:  New Adobe Lightroom 6 (CC) Direct Download Links – Free Trials | ProDesignTools
    and activate with your serial number.
    if you have a problem starting the download, you didn't follow all 7 steps, or your browser does not accept cookies. 
    the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com). 
    failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com or initiates the download of an incorrect (eg, current) version.

  • Issues Opening Files in Network Share

    Hello,
    I'm hoping someone can help me with this issue I'm having,
    I use a Windows 7 desktop at my office and I have a Network Share on a Windows 2008 Server where I save all my documents and file I work on each day.
    I use my Macbook Air when I'm working at my other office and when I'm traveling.
    My issue is this,
    I setup and able to connect to my Network Share and see all my folders and files. Although if I try to open a file it tells me it can't find the file even though I used Finder to browse right to the file and double clicked on the file. I can copy the file locally to my MacBook, work on the file and then copy it back to the Network Share.
    From me testing different things this is what I have found,
    It's only Word, Excel and Powerpoint documents that don't open from the Network Share. - I do have Microsoft Office 2011 Mac installed
    TXT & PDF Files open just fine from the Network Share.
    I doesn't matter if it's Word, Excel or Powerpoint files created on my Windows 7 desktop or my Macbook Air, once it's moved to Network Share I can't open it.
    This is where it gets really confusing, other Network Shares I can open the Excel & Word files right from the Network Share, it's just my personal Network Share and I put in the right username and password for my Network Share since I can open the TXT & PDF files just fine.
    I'd appricate any help with this issue.
    Thanks in advanced - Jonathan

    I have the same problem and i'm not the only one @ my office. seems that everybody who uses mac in our office has the same problem. So could anybody give any advice how to solve this problem? Do we need to configure shared folders on server or just our macs?

  • Some workstations slow to open files on 2008r2 share?

    We have been moving from Novell to Microsoft for a couple years company wide.  Until now, other than outlook, the apps were all local with the data being moved from a Novell server to a 2008R2 server.  A week ago we moved our final drive which
    was three apps the run .exe's from the server directories.  Out of 300 PCs - all replaced in the last year based on ghosts - about 25 took ten minutes to run an app from the shortcut.  All the other PCs don't have the trouble.  I first went
    to that vendor but after troubleshooting, I realized they had slow connections to any windows drives.  They were fine hitting the Novell drives.  I'm guessing since they only pulled documents from the MS drives until now, the slowdown wasn't felt.
    Running the larger exe is where the problem started to show.  I've tried many things I found online so far to no resolution.  These things include:
    autotuning set to restricted, normal or disabled
    turned smb2 off/on
    turned RDC off/on
    set NIC to autonegotiate
    Not server or switch based as good PC is sometimes in the cube right beside bad pc.
    ran windows update
    same NIC drv between good and bad PCs
    Any ideas where to go next?  Thanks for your help!

    Hi,
    Before going further, what’s the operating systems of these workstations?
    The following article focuses on slow network performance when opening a file located in a shared folder on a remote computer, and may be worth taking
    a look at.
    Slow network performance when you open a file that is located in a shared folder on a remote network computer
    http://support.microsoft.com/kb/829700/en-us
    Best regards,
    Frank Shen

  • KDE open file dialog does not honor the global double click setting

    I have checked both in system settings and in the file
    $HOME/.kde/share/config/kdeglobals
    to make sure the singleclick is set to false. Still in the open/save dialog the files are selected and opened in a single click.
    This bug is not seen in chakra linux (which now has kde 4.8.2).
    Anyone can confirm this?
    Last edited by tzhang37 (2012-04-20 16:38:37)

    It works for me.

  • In the Menu Bar, under File, then Open File, how do I change the selections?

    I have Firefox 11.0 and Windows 5.1 (2007). In Firefox, I click on FILE in the Menu Bar, then OPEN FILE (Ctrl+O), and I see a small box; it says Look in: Mozilla Firefox. Below is a selection of files within the folder Mozilla Firefox. To the left is a column of four other folders: Downloads, My Computer, John, Lori. The last two are obviously two of the folders I've created on my computer, using Windows. But I don't know how they got here! I have no recollection of customizing this particular Firefox menu option by adding those folders, nor can I figure out what to do in order to further customize it. Can anyone tell me: (1) how can I change the original "Look in" option so that it opens with something other than "Mozilla Firefox" (which, after all, I never need to access)? (2) how can I add/delete/change the choices offered in the column on the left, so that different folders are listed? (Currently, if I want to access my Windows folders/files, I first have to minimize the Firefox screen; this seems to me a nice shortcut, but I'd like it to include shortcuts to the folders I use the most, which does not include "Mozilla Firefox"!) (3) Is this actually a Firefox feature, or is it a Windows feature? It does look like Windows (Windows style, Windows folders), but it appears only in the Firefox Menu Bar, along with Bookmarks, Tools, etc. Thanks!

    This sounds like a Windows thing ( You can post a photo and I can tell you for certain). Those folders are Windows system created folders that your computer has had since it was installed, all Firefox does is use the Windows File picker, which is what you see when you open that window. So, to customize you'd have to do that from Windows Explorer (not Firefox).
    The Window should however remember what folder you were in last.

  • Open File dialog window when setting the value of a path type input argument in a VI call

    Hi,
    I am new to TestStand (running 4.0) and I want to create a sequence of VIs to turn on, setup and measure a device. One of my VIs sends a configuration file to my device. An input argument to this VI is the path of the config file. I would like to make it simple to modify this path when setting up the sequence by popping up the File Open dialog window and choose my file. Is this possible? I do not want to manually change the file during execution, just to have multiple calls of one VI, each call opening a different file according to the path given to it during the setup. 
    So far I have only succeeded in manually entering the absolute path each time I add this step. What makes it even more annoying is the fact that LabVIEW interprets the path with the escape codes, rendering the path unusable. Manually adding a 2nd backslash at each '\' occurence adds another step to the process. I tried both String and Path type of inputs, and the SearchandReplace() or ToUpper() (trying to bypass the escape codes) functions in TestStand don't seem to help m.
    Your help is very much appreciated,
    Fred

    Eudaemonic,
    If you want to create a series of easy to configure step types so others can develop sequence files easily, you could use custom step types. When you create a custom step type you implement your own configuration dialog. Since you have control over what controls you expose in your configuration dialog, you can design it so the desired path is selected using a open file dialog. Refer to chapter 13 of the TestStand reference manual for more information about custom step types.
    If you do not want to create a custom step type but you still want to give access to your sequence developers to pre-configured steps, you can use templates. A step template is a snapshot of a step that you can reuse later. Let's assume that instead of asking your users to edit the step to enter the desired path, you create several step templates with different pre-configured paths and based on their applications requirements they could use the appropriate template. Refer to the NI TestStand Help for more information about the Templates list on the Insertion Palette.  
    Hope it helps.
    Antonio Lie. 

  • I have ipad2, a modem without a wps button, new hp 3070 e printer     I can print wirelessly, just the open file, from my email to the hp using the hp internal modem. However cant just download my email and prin

    I have ipad2' , new hp 3070 e printervand wireless modem without WPS button. I can print the open file directly to the hp by selecting it in  'wifi' but cannot open a further file without resetting the wifi to that of my modem and then downloading a new item. To print this, I then have to changenthe modem in ' wifi".how can I make the printer, modem and iPad all work on the same IP?

    Hi @kams01,
    Welcome to the HP Forums!
    I see that you are having some connection issues with your HP Officejet 8620 running on Windows 7. I am sorry for the frustration, but happy to help!
    I would recommend going through these two guides:
    'Printer is offline' Message Displays on the Computer and the Printer Does Not Print: Windows 7.
    Printer Does Not Maintain Wireless Connection.
    Tips for troubleshooting wireless connection issues.
    The following tips can help you troubleshoot and avoid wireless connectivity issues. You can try these tips separately or in combination to get a successful wireless signal.
    Move the printer and the computer closer to the router, but no closer than 6 ft (1.8 m). Wireless signals can be weaker at greater distances between the printer and the router.
    If you are experiencing an intermittent wireless connection, try restarting your router. Consult your router manufacturer, Internet service provider, or network administrator for instructions on how to restart the router.
    Remove any metal objects between the printer, the computer, and the router. Objects such as refrigerators, microwaves, or metal bookcases can interfere with wireless transmission.
    Move any device that emits radio signals, such as microwaves and cordless telephones, farther away from the printer. Such devices can interfere with wireless signals. 
    I would also visit this website, HP Wireless Printing Center - Troubleshooting Issues.
    Hope this information is helpful, and thank you for posting!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Safari 5.0.6 is not downloding in my old g4 powerbook it say anetworking error has accurred cannot open file (-3001). but i connect the internet but its not downloding

    i can not downlode safari 5.0.6 in my old powerbook g4,need some help its say (-3001)file can not open.

    Actually if you look to the right of this page in the "More Like This " section you'll see people reporting a -3001 error message when using Software Update. I think these are quite old discussions but among the solutions are a Permissions Repair or updating through a new user account. It would cost nothing to try.

  • Photoshop CS6 (Mac) crashes when opening files with type or using the type tool

    Hi,
    Photoshop CS6 keeps crashing when using the type tool or when opening files with type on it. I've quit suitcase, disabled the suitcase plug-in, reset the preferences in Photoshop there's no crash report coming up either the application just dies! I am currently trying a system restore from time machine to see if that works!. Any other suggestions would be greatly appreciated.
    Many thanks
    Olly

    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html

Maybe you are looking for

  • Whenever I launch firfox through non admin login, I get an alert message.

    Whenever I open firefox through non admin login, I get following alert message. "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this d

  • Best process for scoring my movie?

    Will I loose quality if I import my project to Garageband for the scoring and then use the output from Garageband (incl. video) for iDVD? I choose to remove the video and the video sound once I had done the scoring and then export it as an audio file

  • Compiling c++ files for windows

    I have a c++ program that I would like to compile windows binaries for. I have tried installing mingw32-gcc, and using g++, but when I run the binaries (in wine or from windows), I get errors that certain .dll files are not found. Is there additional

  • Microsoft Office Mac Student Edition

    I have a new IMAC 24 inch. When I use Excel, very often the computer goes to an empty light blue screen and from there to login, and of course I lose all that was not saved. It's impossible to use it. Any ideas? Tks.

  • Error in el01 after MR unit change

    Hi, I need your help : Partner with BP period 2011-01-01 to 2011-04-30. An advance invoice has been made out with payment date 2011-02-28. Now BB plan is inactive. Creating interim billing in 2011-03-05  (interim meter reading with billing) MR unit c