Check if File is open

I need to check if an excel spradsheet is open, is there a way to determine this. Like a getStatus method?
thanks

Someone cannot open or close it immediately after. Permission is granted to only 1 person and when that user exits the GUI, I want to be sure that the excel spreadsheet that he/she was working on is closed; because if it is not closed, I cannot change access to check it back into ms source safe. the user must close excel, and then close my gui. after closing excel, the user can not open it again until the GUI is re run. but in order to ensure that the spreadsheet is saved in the correct place I must be sure that it is closed.

Similar Messages

  • How to force checked out CSV Files to open in Excel and not in Notepad

    Hi,
    I'm looking for some pointers / direction.
    .CSV files on SharePoint 2010 document library opens up in notepad by default. I did the DocIcon.xml CSV entry, changed the MIME type in IIS and did the IIS reset. Also on client computer CSV file is associated with MS Excel 2013. Now clicking a CSV file
    opens it up in MS Excel.
    Now a user checks out a CSV file and the same user clicks on the CSV file, the file is opening in notepad! If other users clicks on the same checked out file (checked out by the first user) it opens up in Excel for them. I've tried the 'Edit in Microsoft
    Excel' from the pop up menu but with same result.
    How can I force a checked out CSV file to open in MS Excel?
    Thanks

    1. Highlight one of the images and press cmd+i (or right click and select "Get info")
    2. Click the dropdown menu and select Photoshop (you might have to click "Other..." to find it.
    3. Then click "Change All" button below.
    You're going to have to do this with every different TYPE of image (e.g. jpeg, tiff etc) but once you've covered all the types you won't have the problem again.
    Hope this helps!

  • How to check file if opened in local PC?

    Dear exports:
    I have met one problem in deal local excel file.
    By user request , we need check if the file which we will use later is oepned .
    I have find the help  in the web , but seems not suit me require .
    Some functions  FM EPS_OPEN_INPUT_FILE or FM's RZL_READ_FILE_LOCAL of FILE_OPEN are  recommended in the web ,
    but it seems not suitable in local file check.
    Hope some can advise me one solution to check if the excel file is opened before program execute.
    Thanks a lot .

    Hi,
    You can check with FM GUI_UPLOAD. If you upload file using GUI_UPLOAD FM it raise error.
    Un comment the Excetion which will give you exact error.
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17     .
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    If file allready open it will give access_denied error i.e. sy-subrc value 13.
    But I think it will work only after ecc6.0 properly.
    You can also used the class CL_GUI_FRONTEND_SERVICES for same purpose.

  • How can I check if a file is opened?

    Hello,
    I have a problem:
    I want to check if a file is existing or not, and if it exists, I want to check if it is opened.
    The following actions should be taken:
    1. File exists => no error message, everything's ok
    2. File does not exist => NO error message, create the file later 
    3. File exists but it is opened => notify user (Ok message)
    4. path does not exist => notify user (Ok message)
    How can I do that? I have problems to check if the file is opened.
    This is what I have done until now:
    Johannes
    LabVIEW 7.1 (!)
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently

    The error checking method is probably the best, most efficient, and cleanest way to do this (only one case structure needed). But here is a somewhat more "rube goldberg" way that does do the job thinking somewhat linearly. If the directory doesn't exist, then the file won't exist. If the file doesn't exist, then it can't be open. So first you check if the directory exists, if it does, check if the file exists, if it does check if it's open. Not a fan of these nested case structures really, but it is a way to do it.
    Message Edited by for(imstuck) on 10-29-2009 07:56 AM
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    file_stuff.PNG ‏10 KB

  • How to check if a file is open

    I have a file (Test.doc) that is currently opened in my WindowsXP OS.
    How can I check from my java code if the file is opened or not? Is there any posibility?

    http://forum.java.sun.com/thread.jspa?threadID=5197544&messageID=9781245

  • To check whether a file is open or not.

    Hi,
    I am using proc_listpidspath() to check whether a file is open or not by some application.
    It works in Leopard but not in Tiger.
    Can anyone suggest some function or solution so that i can check whether a file is open or not in Tiger.
    thanks.

    PersianKamran wrote:
    if i create a file
    File f = new File("path");
    f.createNewFile();
    Now i have created this file.. but i havent wrote any thing to it.. how can i determine that whether this file is empty or not..[Read the fine manual|http://java.sun.com/javase/6/docs/api/java/io/File.html#createNewFile()]
    Atomically creates a new, empty file named by this abstract pathname if and only if a file with this name does not yet exist. The check for the existence of the file and the creation of the file if it does not exist are a single operation that is atomic with respect to all other filesystem activities that might affect the file.
    Returns:
    true if the named file does not exist and was successfully created; false if the named file already exists So if it returns true, then the file is created and empty.
    Secondly, once i write some thing to file.. how can erase all the data from file ?deleting it will get erase the file and return you to the state you started from.
    Iif you don't want to create a new file, don't use the createNewFile() method and use the new FileOutputStream/close approach rather than the createNewFile()/delete() pair as already described in this thread.

  • Check if file open for read (INPUT)

    Hi,
    how ti cheeck if file is open for reading. I have problem, that one file could be open for reading, for example with RFBIBL00, and my Z program creates this file. My program should not be able to open this file, because of inconsistencies in RFBIBL00. Diff. filenames aren't an option....
    thx
    mario

    not helping, in case that one program has
    open dataset dsn for input in text mode encoding default.
    in other program:
    open dataset dsn for output in text mode encoding default.
    returns sy-subrc = 0.
    and i'm able to use
    transfer string to dsn
    . and change file.
    I don't want to do that

  • Cannot delete exe files - The action can't be completed because the file is open in Windows Explorer

    We have received 3 new computers with Windows 8.1. All of us 3 have the same problem: we cannot delete exe files with message "The action can't be completed because the file is open in Windows Explorer"
    For example, I download skypeinstall.exe on desktop, install the program correctly and then try to delete the file: file is in use by Windows Explorer, cannot be delete.
    We reboot computer, we are able to delete the file. But, if I restore the file from the recycle bin on the desktop, I cannot delete it again until I reboot the PC. I used ProcessExplorer to see what is locking it and I can see 5 instances of explorer.exe
    locking the file.
    I can always reproduce the same way:
    1-Reboot
    2-Delete exe file
    3-Restore file
    4-Delete stop working and 5 explorer.exe handle are locking it.
    I have tried the following so far after reading multiple threads:
    - De-activating Windows Search service
    - Activating User Experience service
    - Deleting from command prompt (no success)
    - In folder options: inactivate display icon on thumbnail and activate always display icons, never thumbnail
    - Changing folder view (contents, detail, small icons...)
    - Using Lock Hunter - not working until reboot
    None of these worked.
    We all have Windows 8.1 with Crucial SSD drive, could the problem be linked with the SSD drive incompatibility?
    Any help would be appreciated.

    Hi,
    Please try to make a clean boot for your system, then check if this problem resolved.
    Clean Boot: http://support.microsoft.com/kb/929135
    If problem persists, try to open Resource Monitor to check handle of Explorer.exe, if there any exception, end them for test.
    Roger Lu
    TechNet Community Support

  • Thoughts on how LabVIEW handles checkout of file from SCC when file already open

    When you already have a file/project open in LabVIEW and it is set to read only because you haven't checked it out, you can go into SCC and do a checkout then save the file immediately. The issue with this is, if your local copy doesn't match the copy in SCC, you will probably be overwriting changes. Sometimes this is convenient because if you have ever edited a MS Word file and then gone to save and it won't let you because it was opened as read-only...then that sucks because you either lose your work, or have to do a copy of the entire word file->close the program->re-open as writable, then paste. This can be avoided with the "LabVIEW way", but the "MS Word" way seems much safer because it forces you to conscioiusly make the file writable (by either checking it out or manually write clicking and changing to writable) BEFORE opening it. I just wanted people's opinions on how LabVIEW handles this, and if there would be a better way.
    CLA, LabVIEW Versions 2010-2013

    VSS 
    CLA, LabVIEW Versions 2010-2013

  • Error message when finalizing...file already open with write protection

    I just created my first movie in i Movie. It's about 9 minutes long. When I tried to finalize it it worked for a couple of hours and then came up with a message "unable to prepare project for publishing because an error occurred (file already open with write protection)". What does this mean? I thought I had closed all the files I was using. There was no error number. I tried it 3 times and got the same message. Any thoughts would be greatly appreciated.

    AppleMan, I just checked that and it looks like Time Machine isn't open. I checked it by going to finder>applications>R click on time machine. It gave me the option to "open" which makes me think it's already closed. Is there somewhere else I need to be looking?
    I made another movie that was just a couple of clips and it finalized fine. On that movie, I had some MTS clips and I converted them to mp4's so iMovie could read them.
    In the one that didn't work I did clip one of the movies before I imported it into iMovie. It saved as a .mov instead of a .mp4. Would that make a difference? I checked all of the files and none of them are listed as locked, so I really don't get the "write protected" aspect of this error.

  • Software Updates Missing and File Not opening in Final Cut Pro

    Hi Experts,
    I am having trouble with Final Cut Pro. Here goes:-
    I tried to load up a FCP file called "Overview" in Lesson One of the Apple Pro Training Series book called "Color". The file would not open and I got the following message alert in FCP:
    "File's format is too new for this version of the application".
    I am running FCP 6.0.1 and so went to check for software updates. I could not find any listed for FCP. I did a quick internet search to make sure and found there were indeed updates to 6.0.1.
    So I guess I have 2 problems:
    1. Why won't a file from a book that was published before I bought FCP work on my app?
    2. Why can't I see updates for FCP in the Software Update application?
    I am mega stuck with this. I have read of similar problems to mine on the internet but have found no solution. I hope that you will be able to help me out.
    Thank you all,
    Bob

    Hi Nick!
    Thanks for your reply. I feel kinda silly now but I have been continuously checking Software Update for 24hrs and I just got a new addition to the list which was called "Pro Applications Update 2008-05".
    Seeing something new, I installed it and it upgraded my Final Cut Applications including FCP to version 6.0.5.
    The file then opened.
    I am truly sorry to have taken your time up. As when I posted last time Nick, you were very prompt and helpful.
    All the best,
    This problem is solved for me and I hope all the other people having this problem find this update as luckily as I just did.
    Bob

  • .doc File not opening in SAP

    Hi,
         I am a Network Engineer & i am a noob in SAP.
    One of our Customers is implementing SAP in their Enterprise & they are learning it.
    Today, there is an error came in the SAP.Some users are not able to open a .doc File from the SAP Window.SAP expert is saying that its a PC Error.We have re formatted the PC & re installed the Microsoft Office in it.Still, the error is coming in 3 PCs.
    Due to this, they (Users) are not able to download the reports.
      I am attaching a Screen Shot which will give you  the exact type of Error it is showing.Please help me step by step if you know the solution.
    Thanks in Advance!!
    Click on the Link for the Screen Shot:
    [SAP Error|http://i357.photobucket.com/albums/oo15/rajeevpayal/SAP_Error.jpg]
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Sep 28, 2011 3:42 PM

    Hi,
    EXECUTE I18N TRANSACTION CODE--> EXPAND I18N CUSTOMIZING > DOUBLE CLICK ON MS WORD EDITOR--> SELECT BOTH CHECK BOX FOR SCRIP AND SMARTFORMS AND CLICK ON ACTIVE...........
    NOW YOUR FILE CAN OPEN IN SAP...
    ABOVE MENTION STEPS ONLY WORK IN ECC VERSION...
    REGARDS,
    KRISHNA

  • Unable to double-click or drag/drop files to open.

    I'm running Photoshop CC 64 on a Windows 7 64 machine and am only able to open files in Photoshop by going to File->Open. Double-clicking from Explorer doesn't work and i can not drag/drop files into the open application window or taskbar icon. Right clicking on files and selecting "Open with" also doesn't work.
    I checked file associations and made sure to choose CC 64. If I right click on the shortcut and choose "Run As Administrator" which I have to do in order to get files to open between Lightroom and Photoshop (both need to be Run As Administrator), I'm still unable to open from Windows Explorer. However, if I check the box to "Run this program as administrator" in the shortcut's Compatibility tab, I can double-click to open from Explorer but am prompted with a UAC warning every time. Dragging/dropping into the open app still doesn't work.
    Opening between Bridge and PS works as expected so long as both programs are "Run As Administrator"
    Been searching the forums here and seen suggestions of similar but not the same issue, at least not that I've found.
    Anyone else experiencing? Suggested remedies?

    This is an OS permission problem.  Make sure you have ownership of the HD.  Do a web search on how to check.  External HD can be a problem for permission.

  • Photoshop CS1 files not opening with a double click?

    I'm not sure if this is an Adobe related issue, but I recently installed Tiger on my 2005(white/1.33ghz/PPC G4) ibook. With Panther, and with every other OS/application, I was able to double a Photoshop File and have Photoshop open along with the file. Here's what happens now: I double click the photoshop file (any photoshop cs1 file), Photoshop opens, but my file doesn't open. I have to find the file and open it from the menu bar in order to access it. This is very annoying for me as I open Photoshop files more than anything. Here's what I've done: I got info on the Photoshop file to make sure Photoshop CS1 is selected as the host application. Check preferences and settings in Photoshop, (didn't find anything related though, but everything is the way they were when I was on Panther. Possible Obstructions: I also have Photoshop 6 on 0S 9 installed on my computer. I have many filters on this version that I don't on CS1. I don't think this is the reason but I could be wrong. Any help with this issue would be greatly appreciated. Thank you in advance.
    -Ellz

    Except Adobe tells you to reinstall Photoshop (or least that has been their recommendation), which is completely unnecessary. The problem is that this is missing when you do a system upgrade:
    "/Library/ScriptingAdditions/Adobe Unit Types"
    Reinstalling Photohop will, of course, create the ScriptingAdditions folder and place the "Adobe Unit Types" file inside it. If you still have your Previous System folder, or a backup of it, or access to another machine with Photohop installed, you can simply put the ScriptingAdditions folder into your /Library folder. If not you can create the ScriptingAdditions folder yourself (note there is NO space in the name), then download and unzip this:
    http://homepage.mac.com/francines/pdfs/AdobeTypes.zip
    and put the "Adobe Unit Types" into the ScriptingAdditions folder.
    Francine
    Francine
    Schwieder

  • Have trouble double clicking on a second file to open

    There are really two problems here:
    1)  If I double click on a file, it opens in Illustrator, but it does not open with my default workspace settings.  If I open the file from the file menu, my preferred workspace opens.
    and
    2) If I have one file open, I cannot double click on a second file and have that file open in Illustrator.  I just get the little spinning circle and then it stops.  I can still open a second file from the file/open menu option.
    We are using CS6 and running windows 7.

    Brett,
    The issues which you have mentioned points towards having some permissions issue on the system.
    My suggestion would be to make sure that the user account which are using is Administrator.
    Also, make sure you have full permission on the location mentioned in the document below:
    http://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    Here are the steps to modify ownership and permissions of folders and files:
      1.       Right-click the file or folder, click Properties, and then click the Security tab.
      2.       Click Advanced, and then click the Owner tab.
      3.       Click Edit, and then do one of the following:
    ·         To change the owner to a user or group that is not listed, click Other users and groups and, inEnter the object name to select (examples), type the name of the user or group, and then click OK.
      ·         To change the owner to a user or group that is listed, in the Change owner to box, click the new owner.
      4.       If you want to take ownership of the contents of the folder, select the Replace owner on sub containers and objects check box.
      5.       Click OK, and then click Yes when you receive the following message:
              You do not have permission to read the contents of directory folder name. Do you want to replace the directory permissions with permissions granting you Full Control?
              All permissions will be replaced if you click Yes.
    Note folder name is the name of the folder that you want to take ownership of.
      6.       Click OK, and then reapply the permissions and security settings that you want for the folder and its contents.
      Additional considerations
       ·         An administrator can take ownership of any file on the computer.
       ·         Assigning ownership of a file or a folder might require you to elevate your permissions using
    Let me know if you need more help on this.
    - Mandhir

Maybe you are looking for