File.exists() is not accurate on smb2 network share (use WatchService?)

Hi,
According to this document: SMB2 Client Redirector Caches Explained File.exists() is not accurate on a smb2 network share. I am not able to change any register settings, so I want to deal with it. According to the document there is an API to get the notifications from the file system. I assumed that the WatchService is the Java implementation of this API. Am I correct?
I started with the WatchDir example from the jdk samples and stripped it a bit. I only need to know when a file is created and delete (I don't care about file modifications). For testing I have added new File.exists() when a new event has been triggered. I also start a separated Thread which test the file existence also. When I don't start this separated thread the file exists returns true immediately. When the extra thread is started it is not accurate any more. I need a more accurate file.exists check in the whole application and all running threads.
The output for my test case is this:
FileExistsThread: subdir\test.txt == false
watch registered for dir: subdir\
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
WatchDir event: ENTRY_CREATE: test.txt
WatchDir: subdir\test.txt exists == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == true
FileExistsThread: subdir\test.txt == true
FileExistsThread: subdir\test.txt == true
FileExistsThread: subdir\test.txt == true
As you can see the file test.txt  is created on line 9. The FileExistsThread have seen it on line 20, (at least 10 x 300 ms later).
For testing I have used 2 Windows 7 pc's (with smb2 enabled which is default). The working directory must be on the remote pc and the file test.txt must be created (or copied from another folder) on the remote pc (not using the network drive, but on the pc itself).
Here is my test code:
package nl.test.main;
import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE;
import static java.nio.file.StandardWatchEventKinds.OVERFLOW;
import java.io.File;
import java.io.IOException;
import java.nio.file.ClosedWatchServiceException;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.WatchEvent;
import java.nio.file.WatchKey;
import java.nio.file.WatchService;
public class WatchDir
  private final WatchService _watcher;
  private final String _dir;
  public WatchDir( String dir ) throws IOException
    _dir = dir;
    _watcher = FileSystems.getDefault().newWatchService();
    Paths.get( dir ).register( _watcher, ENTRY_CREATE, ENTRY_DELETE );
    System.out.println( "watch registered for dir: " + dir );
  public void run()
    try
      while ( true )
        WatchKey key = _watcher.take();
        for ( WatchEvent<?> event : key.pollEvents() )
          WatchEvent.Kind<?> kind = event.kind();
          if ( kind == OVERFLOW )
            continue;
          @SuppressWarnings( "unchecked" )
          WatchEvent<Path> ev = (WatchEvent<Path>)event;
          Path fileName = ev.context();
          System.out.println( "WatchDir event: " + kind.name() + ": " + fileName );
          if ( kind == ENTRY_CREATE )
            String realPath = _dir + fileName;
            System.out.println( "WatchDir: " + realPath + " exists == " + new File( realPath ).exists() );
        key.reset();
    catch ( ClosedWatchServiceException x )
      return;
    catch ( InterruptedException ex )
      return;
  public static void main( String[] args )
    Thread t = new Thread( new Runnable()
      @Override
      public void run()
        try
          while ( true )
            String filename = "subdir\\test.txt";
            boolean fileExists = new File( filename ).exists();
            System.err.println( "FileExistsThread: " + filename + " == " + fileExists );
            Thread.sleep( 300 );
        catch ( InterruptedException e )
          e.printStackTrace();
          return;
    t.start();
    try
      new WatchDir( "subdir\\" ).run();
    catch ( IOException e )
      e.printStackTrace();
Any idea's?
Thanks,
Olaf

If you donot have access to note 45172.1 as specified by Laurent Schneider.
Snippet from note
a. Mapped Drive : To use a mapped drive, the user that the service starts as
must have setup a drive to match UTL_FILE_DIR and be logged onto the server
when UTL_FILE is in use.
b. Universal Naming Convention : UNC is preferable to Mapped Drives because
it does not require anyone to be logged on and UTL_FILE_DIR should be set to
a name in the form :
\\\<machine name>\<share name>\<path>
or
"\\<machine name>\<share name>\<path>"

Similar Messages

  • How do I determine if a file exists or not on my PC?

    I thought this would be an easy one and maybe I am just making it harder than what it has to be. I simply want to search in a given directory to see if a file exists on not on my hard drive. Are there any ideas as to how to do this without causing an error if the file does not exist?

    Hi:
    In those situations what I've done till now is opening  the file
    and  close it inmediatly, if I find out and error while opening it
    I guess it doesn't exist. I know this is not the best way since there
    may be other reasons for the Open File Function to fail, but it has
    worked for me. Does somebody know a better way to do it?
    Regards
    Robst - CLD
    Using LabVIEW since version 7.0

  • How to test an image file existing or not

    Hi Everyone,
    I want to test whether an image file exists or not before setting the url of an image component in JSF to it. Following is my code:
    File testFile = new File(image_path + "/p1.jpg");
    if(testFile.exists()){
    info("file exists");
    }else{
    info("file not exists");
    this.myImage.setUrl(image_path+"/p1.jpg");
    Althoug the p1.jpg can be linked to myImage, the existence test always fails. That is, I got the message "file not exists" even though it is already displayed.
    What did I do wrong?
    Thanks in advance,
    Message was edited by:
    field

    File testFile = new File(image_path + "/p1.jpg");Is image_path an absolute path or relative path?

  • How to check whether file exist or not?

    hello,
    i wanted to know that how can i check whether a file exist or not independent of underlying Operating system?
    please help .
    Thank you.

    Use exists() on a File instance.

  • Office 365 x64 Click-to-Run Not Automatically Updating from Network Share

    We are piloting Office 365 x64 and pointing the clients to a network share (see config file below) for updates.  When we subsequently download the updates to the share the clients will not automatically install them.  If we manually do so from
    within an app (File > Account > Update Options > Update Now) it works fine.  The ACL and Sharing permissions allow Everyone and Domain Computers read-only access (in addition to some other ancillary accounts).  I've tried manually running
    the Office Automatic Updates from Task Scheduler and left the box running overnight.  I've rebooted, logged back on, closed and opened the app several times.  Nothing happens, just always sits at the current version.
      Anyone have any ideas?
          Thanks,
             Bryan
    Here's the UpdateURL registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\ClickToRun\Configuration\UpdateUrl = \\<SERVERNAME>\Office_365\Pilot
    ProPlusx64.xml:
    <Configuration>
    <Add OfficeClientEdition="64" >
    <Product ID="O365ProPlusRetail">
    <Language ID="en-us" />
    </Product>
    </Add>
    <Updates Enabled="TRUE" UpdatePath="\\<SERVERNAME>\Office_365\Pilot\" />
    <Display Level="None" AcceptEULA="TRUE" />
    <Logging Name="OfficeSetup.txt" Path="%temp%" />
    <Property Name="AUTOACTIVATE" Value="1" />
    <Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
    </Configuration>
    Here's what I think is the log file:
    Timestamp Process TID Area Category EventID Level Message Correlation
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x554 Click-To-Run Telemetry aqkhc Medium {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","ExeVer":"15.0.4615.1002","SecuritySessionId":"0","ModulePath":"C:\Program Files\Microsoft Office 15\ClientX64\OfficeClickToRun.exe","CommandLine":"/service","Bitness":"64","IntegrityLevel":"0x4000"}
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x554 Click-To-Run Telemetry aqkhe Medium {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","OSVersion":"6.1","SP":"1","ProductType":"1","ProcessorArch":"9","Locale":"1033"}
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x568 Click-To-Run annt7 Medium ProcessPool::Initialize - Initializing Main Process Pool
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x568 Click-To-Run annuf Medium SystemProcessPool::DoInitialize - Initializing System Process Pool
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x568 Click-To-Run anntv Medium ConfigurationManager::Initialize - Initializing ConfigurationManager
    05/01/2015 11:21:11.061 OFFICECL (0x550) 0x568 Click-To-Run annt4 Medium Pipeline::Initialize - Initializing pipeline with PipelineServerName: "ClickToRun_Pipeline" and InstallationPath: "C:\Program Files\Microsoft Office 15"
    05/01/2015 11:21:11.154 OFFICECL (0x550) 0x568 Click-To-Run annt1 Medium Orchestration::Initialize - Initializing Orchestration
    05/01/2015 11:21:11.201 OFFICECL (0x550) 0x568 Click-To-Run annto Medium ApiServer::Initialize - Initializing ApiServer for endpoint: C2RClientAPI_Server_System
    05/01/2015 11:24:50.661 OFFICECL (0x550) 0x828 Click-To-Run annty Medium ExecutionContext::QueueScenario - Set executing scenario to UPDATE
    05/01/2015 11:24:50.661 OFFICECL (0x550) 0x828 Click-To-Run annuz Medium TaskFactory::TryLoadScenario - Start loading UPDATE scenario
    05/01/2015 11:24:50.661 OFFICECL (0x550) 0x828 Click-To-Run annu0 Medium TaskFactory::TryLoadScenario - Loading UPDATE scenario is successful
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0x828 Click-To-Run amavh Medium ScenarioController::Initialize - requested display level: False
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0x828 Click-To-Run annua Medium ProcessPool::QueueTaskItem - Task SCENARIO:{AC2F0D89-6518-48E9-A0D9-EF039C456034} is being scheduled to run in this process
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0x828 Click-To-Run aoicd Medium ExecutionContext::QueueScenario - Successfully queue scenario UPDATE.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf6c Click-To-Run annua Medium ProcessPool::QueueTaskItem - Task UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0} is being scheduled to run in this process
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf6c Click-To-Run annvj Medium Worker::TaskExecutionThreadProc - Task SCENARIO:{AC2F0D89-6518-48E9-A0D9-EF039C456034} completed with TaskState TASKSTATE_EXECUTING.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf6c Click-To-Run annu6 Medium TaskGroup::DoHandleWorkerCompleteEvent - Task {AC2F0D89-6518-48E9-A0D9-EF039C456034} complete event is handled by task {AC2F0D89-6518-48E9-A0D9-EF039C456034}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf6c Click-To-Run apm4n Medium TaskGroup::Finalize - Task AC2F0D89-6518-48E9-A0D9-EF039C456034 is not finished.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run Telemetry amb0n Medium TaskUpdateDetection::ApplySettings: Beginning Update Scenario. {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","TargetVersion":"UNDEFINED","InstallID":"C5912794-7300-4A10-840B-575B03DB98F8","TaskId":"77176F9C-873B-4A7D-8051-EBEB52DDE8B0","TaskState":"TASKSTATE_EXECUTING","UpdatePathType":"CUSTOM","TaskType":"UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0}","Scenario":"UPDATE","TriggeringUI":"UNDEFINED","TaskCaller":"SCHEDULEDTASK"}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run Telemetry aoh6s Medium TaskUpdateDetection::Execute: Ending Update scenario, task trigger source disabled. {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","InstallID":"C5912794-7300-4A10-840B-575B03DB98F8","TaskState":"TASKSTATE_EXECUTING","TaskId":"77176F9C-873B-4A7D-8051-EBEB52DDE8B0","TaskType":"UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0}","Scenario":"UPDATE"}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run annvj Medium Worker::TaskExecutionThreadProc - Task UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0} completed with TaskState TASKSTATE_FAILED.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4b Medium Task::DoHandleWorkerCompleteEvent - Setting Task (77176F9C-873B-4A7D-8051-EBEB52DDE8B0) Task State to (TASKSTATE_FAILED)
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run aqkg7 Medium Task::DoHandleWorkerCompleteEvent - No event is specified for task (77176F9C-873B-4A7D-8051-EBEB52DDE8B0)
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run Telemetry apm4e Medium Task::HandleTaskStateFailed - Handling TaskState (TASKSTATE_FAILED) for task (77176F9C-873B-4A7D-8051-EBEB52DDE8B0). {"SessionID":"bfe53625-5d12-4e1a-b3b4-2d8e88b0d108","GeoID":"244","Ver":"15.0.4615.1002","InstallID":"C5912794-7300-4A10-840B-575B03DB98F8","TaskState":"TASKSTATE_FAILED","TaskId":"77176F9C-873B-4A7D-8051-EBEB52DDE8B0","TaskType":"UPDATEDETECTION:{77176F9C-873B-4A7D-8051-EBEB52DDE8B0}","Scenario":"UPDATE"}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apkpk Monitorable ScenarioController::CheckProcessPool - Failed to get/create ui process pool, and we are not the ui handler. Cannot process event
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run annu6 Medium TaskGroup::DoHandleWorkerCompleteEvent - Task {77176F9C-873B-4A7D-8051-EBEB52DDE8B0} complete event is handled by task {AC2F0D89-6518-48E9-A0D9-EF039C456034}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {AC2F0D89-6518-48E9-A0D9-EF039C456034}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4a Monitorable Task::DoCancel - Can't cancel task (77176F9C-873B-4A7D-8051-EBEB52DDE8B0) because it is in TASKSTATE_FAILED state
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (57173191-24E0-42E1-96F4-914AF8CFD1D5) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (AA63EED2-70B9-4E21-952C-9CFB09EC37C0) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {D1506E3F-4B2A-41D3-913B-FA3E889CE20D}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {539BA5C1-BC18-4D11-AF61-CF6EDC58DC33}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (D1E1E548-917D-4D75-8AE5-FC76856C66DC) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {9A54EEBA-7B8D-4BD5-8EFE-D21E58FFFEE3}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {9C141B7D-2B22-4C33-9C5C-F6F3394AD19E}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {501487AD-0A47-419D-AF30-B9E616A4579B}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4p Medium TaskGroup::DoCancel - Attempting to cancel task {0270BAF9-3CE0-46EE-A3FE-099ABC06BC14}
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (F0E5AF5D-5D82-4370-A2A6-C064CBC39247) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 0270BAF9-3CE0-46EE-A3FE-099ABC06BC14.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 501487AD-0A47-419D-AF30-B9E616A4579B.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm39 Medium Task::DoCancel - Task (A5E75ADF-8BF1-44C4-8900-1BE6070EB609) in TASKSTATE_NOTSTARTED, set to Cancelled.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 9C141B7D-2B22-4C33-9C5C-F6F3394AD19E.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 9A54EEBA-7B8D-4BD5-8EFE-D21E58FFFEE3.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task 539BA5C1-BC18-4D11-AF61-CF6EDC58DC33.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task D1506E3F-4B2A-41D3-913B-FA3E889CE20D.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task AC2F0D89-6518-48E9-A0D9-EF039C456034.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run apm4o Medium TaskGroup::Finalize - Finalizing task AC2F0D89-6518-48E9-A0D9-EF039C456034.
    05/01/2015 11:24:50.676 OFFICECL (0x550) 0xf70 Click-To-Run annt0 Medium ExecutionContext::ResetExecutingScenario - Reset executing scenario

    Hi,
    I replied in the other thread:
    http://social.technet.microsoft.com/Forums/office/en-US/e9e6be40-fb92-4734-9f94-9dee5599b1d8/office-365-pro-plus-2013-update-wont-apply-automatically?forum=officeitpro#c156ed8c-f65c-450c-9e0f-85f0de513c20
    It seems when the install finished it added an extra Office\Data to the path. My path should be \\hsbswpush02\GPsoftware\o365\Office\Data\15.0.4551.1005
    but it shows
    \\hsbswpush02\GPsoftware\o365\Office\Data\Office\Data15.0.4551.1005
    If I edit the path and delete the extra Office\Data Office 365 ProPlus updates from my network location. I cannot figure out why it is adding the extra Office\Data to the path.
    My config file looks like this:
      <Updates Enabled="TRUE" UpdatePath="\\hsbswpush02\GPsoftware\o365\Office\Data" />
    have you tried omitting the \Office\Data element, from the Updates element ?
    http://technet.microsoft.com/en-us/library/jj219426.aspx#BKMK_UpdatesElement
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Can't copy files to network share using migrated account

    Man this is so bizarre. I got a new MacBook Pro and used the Migration Assistant to copy over everything from the old MacBook Pro. Everything seems to work except I can't copy files to my desktop via a network share.
    What's totally bizarre about this is that I can delete and rename files from the network share! I can also drop into the command line and try copying - at first, I get "Operation not permitted", but if execute the command again, it works!
    In the Finder, when I try to copy a file, I get a window that says:
    "You may need to enter the name and password for an administrator on this computer to change the item named "xxx". If I click stop at this point, a zero-byte file is created on the target machine.
    If I click Continue, I get another window that says "The item "xxx" contains one or more items you do not have permissions to read. Do you want to copy the items you are allowed to read?
    If I click Continue, I get a final window that says "The operation cannot be completed because you do not have sufficient privileges for some of the items".
    Note that this also happens in the opposite direction when I connect to my notebook from my desktop.
    Also note that this only happens with the account that was migrated. I can successfully copy files if I setup a new account.
    I've repaired permission on both machines. My old account on the old MacBook Pro still works fine, btw.
    I've seen other posts with people having this problem, but I've yet to see a good solution.

    I had the same problem, but I managed to fix it.
    In WGM check that the sharepoint of your users Home Folder is set to owner root with Read and Write permissions.
    I also created an ard_admin group in WGM and enabled open directory management on the client Macs. (Page 62 of the ARD admin Guide.)

  • Not able to access network shares on a Win 7 Pro SP1 machine on certain machines

    I have computer "FileShare"
    It runs Windows 7 Pro SP1 and it's current on updates.  Password Protected Sharing is OFF, Advanced Sharing is set to "Everyone read/write"
    I can access it from other PC's in the same workgroup and no passwords are prompted for.  The other PC's run XP or Win 7, and they all work fine.
    However I have a Laptop running XP Pro SP3 current on updates, and a Win 7 Pro SP1 TestBox also current on updates.
    The Laptop and TestBox require passwords to log into the network shares.  I've tried rebooting all of them, adding "guest" to the user list for shares on computer "FileShare", and have even set a blank password to Guest on "FileShare". 
    Tried Turning Password Protection off and on again. Rebooting again. The Laptop and Textbox still need passwords, while numerous other XP desktops can access the network shares just fine.
    Any ideas on what to do?

    Hi,
    This behavior may occur if all the following conditions are true:
    a. NetBIOS over TCP/IP is not turned on (enabled) on one or more computers in the workgroup.
    b. The Computer Browser service is not started or is turned off on one or more computers in the workgroup.
    This behavior may also occur if File and Print Sharing for Microsoft Networks is not installed or is blocked by Windows Firewall.
    Step 1: Enable NetBIOS over TCP/IP
    Control Panel > Network and Internet Connections > Network Connections > Right-click Local Area Connection, and then click Properties > Internet Protocol (TCP/IP), and then click Properties.
    > click Advanced > Click the WINS tab > Under NetBIOS setting, click Enable NetBIOS over TCP/IP, and then click OK two times > Click Close to close the Local Area Connection Properties dialog box.
    > Close the Network Connections window.
    Step 2: Start the Computer Browser service
    Start > right-click My Computer > Manage > Double-click Services and Applications > Double-click Services > On the right side, right-click Computer Browser, and then click Start.
    > Close the Computer Management window.
    Step 3: Temporary disable firewall and antivirus programs for test.
    It also can be caused by software conflicts. If the issue disappears in the Clean Boot environment, we can use a 50/50 approach to quickly narrow down which entry is causing the issue.
    How to perform a clean boot to troubleshoot a problem in Windows 8, Windows 7, or Windows Vista
    http://support.microsoft.com/kb/929135
    Since the issue does not occur in all computers, you should also compare the different settings between them to narrow down the cause.
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • How to backup a network share using Time Machine

    My Mac connects to several network shares on my network.
    I'm having Time Machine running backups to a local attached USB disc. Works great.
    But I would very much like to backup up the network shares as well - how do I do that using Time Machine?

    Apple does not support backing up to a network share. Why? Who knows. but you can find a "hack" here:
    http://blog.imulus.com/george/software/using-leopard-time-machine-to-backup-of-a -network/
    http://www.flokru.org/2008/02/29/time-machine-backups-on-network-shares-in-leopa rd/

  • How to check whether a file exists or not

    i am in an image uploading utility. i hav succesfully uploaded the image to the server directory (say /uploads). but when displaying the uploaded image, i wanna show the picture only if the image exits (bcoz for some records there is no image). so i hav used this code
    if(new File("uploads/1.jpg").exists())
         out.print("image exists");
    but its not working for me. i got it working fine when i give the full path "D:/Tomcat/webapps/diary/admin/uploads/1.jpg". but i think giving this absolute path is not an efficient method bcoz its a web application, bcoz i may not be able get the absolute path always. so how can i do this by specifieing the relative path
    help me ASAP if u can
    aleens

    Haii ameen
    This is one way to rectify your problem..
    if(new File("uploads/1.jpg").exists())
    out.print("image exists");
    instead of this u can write like
    <%
    ServletConfig cf=getServletConfig();
    ServletContext c=cf.getServletContext();
    if(new File(c.getRealPath("uploads")+"/test.txt").exists())
    out.print("image exists");
    %>If u are not clear of what it is done let me know..i will xplain to you furthur...
    Happy New Year
    Shanu

  • My Mac, all of a sudden, actually says error messages like: "A File couldn't not fetched from the network..."

    All of a sudden my mac starts speaking, but it only reads an error message. "A file could not be fetched from the network" but Voice over is turned off, I double checked it. I don't know what happened, but it's annoying, because it is so random.
    I really need help.
    Chris

    I think I know the culprit now, it is Little Snitch and its Audio Prompts. I found something in their Forum but you can't dectivate it.

  • URGENT!!! how to check whether file exist or not on client side?

    hello,
    i am building appilication using JSP and javabeans.
    Problem is my application is like on server files are there for say colors and their corresponding car image in that color.so when i move my mouse over that particular color ,its corresponding car image is displayed.
    now say someone has deleted that corresponding car image file but image of color is there...........
    so i have to handle such excpetion.
    like if corresponding car image for that color is not there then that color image should also not be displayed.
    i dont want to do this checking on server side.
    pls help me!!!!!!

    You don't have access to the client files. It is a security violation in a normal internet environment. Imagine what people could do to your computer if they could see everything on it.

  • FSDB File Meta Data not accurate

    I have some folders on an FSDB (Windows NT Share).  When I view the files, the modified date is correct.  If I view the documents via the portal, the modified date is older than the date shown via Windows explorer.  If I click the action Icon and select details, the information is the same as the Window share.  Once I close that window, the portal refreshes and now the date is updated.
    Please view this <a href="http://www.rquackenboss.com/SharedFiles/File_modifiedDate.png">Screenshot</a> for a better description of what I am talking about.
    Can someone explain how / why the two dates are not in sinc?
    Thanks,
    Quack

    Sorry Frank...
    I found it!!!!
    Content Admin->KM Content->Toolbox->Reports->User Related Cleanup->CM Repository: FS-DB Database Synchronization
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/83d1f7229c5965e10000000a422035/frameset.htm">SAP Help</a>
    I should have looked first.
    Thanks for the heads-up.
    Quack
    Message was edited by: Ryan
    Added link to SAP help
            Ryan Quackenboss

  • Determine a excel file exists or not by active x

    I w a n t t o a d d t h e d i f f e r e n t d a t a a b o u t a s p e c i f i e d U U T t o d i f f e r n t w o r k s h e e t o f a s p e c i f i e d w o r k b o o k s . I f t h i s w o r k b o o k d o e s ' t e x i s t , t h e n c r e a t i t a n d s t o r e t h e d a t a . I f t h i s w o r k b o o k a l r e a d y e x i s t , t h e n o p e n i t a n d s t o r e t h e d a t e i n a n e w w o r k s h e e t . B u t h o w c a n t h e p r o g r a m k n o w w h e t h e r t h e e x c e l 9 7 f i l e e x i s t a u t o m a t i c a l l y ? T h e q u e s t i o n a b o v e i s b a s e d o n l a b
    v i e w 5 . 1 a c t i v e x a n d e x c e l 9 7 .

    Use Workbooks.Open(...) method which takes the XLS file path
    to open. It returns a reference to the Workbook object if succeeded.
    Otherwise this action raises a COM exception. Sorry but I don't
    know how to handle COM exceptions in a general way. (I think
    the Error Out control may report an error if failed.)
    Makoto
    "east" wrote in message
    news:[email protected]..
    > I w a n t t o a d d t h e d i f f e r e n t d a t a a b
    > o u t a s p e c i f i e d U U T t o d i f f e r n t w
    > o r k s h e e t o f a s p e c i f i e d w o r k b o o k s . I
    > f t h i s w o r k b o o k d o e s ' t e x i s t , t h e n c
    > r e a t i t a n d s t o r e t h e d a t a . I f t h i s
    > w o r k
    b o o k a l r e a d y e x i s t , t h e n o p e n i t
    > a n d s t o r e t h e d a t e i n a n e w w o r k s h e
    > e t . B u t h o w c a n t h e p r o g r a m k n o w w h e
    > t h e r t h e e x c e l 9 7 f i l e e x i s t a u t o m a t
    > i c a l l y ? T h e q u e s t i o n a b o v e i s b a s e d
    > o n l a b v i e w 5 . 1 a c t i v e x a n d e x c e l 9 7

  • I have the Adobe Premiere Pro CS4 "Classroom in a Book" but my computer says "File Format is not Supported" when I try to use accompanying DVD. What is wrong please, I really like the book and want to learn!

    I've had the product for a while and have tried editing without the book and using video's but it goes slow and I don't feel like I'm learning.
    I'm sure there are shortcuts to be had and I'm re-inventing the wheel it seems.
    "File Format not supported" means exactly what? Is my Windows Version not compatible?
    Not used to chat rooms, would prefer personal training but that is not the way of things anymore.

    Okay, so I Right Click and nothing says "Link Media".
    When I double click on an asset it says, "the selected file cannot be linked because it has 2 audio channel(s) and the clip was created with 1 audio channel(s)."
    However 1 video clip asset does open in CS4.
    The "Lesson One" project itself says, "file format not supported." still.

  • Large files are corrupting when copying to a network share

    Hi,
    I have a Mac running 10.5 and whenever I copy a file 50MB or over to a network location the file will corrupt. I've tested with a number of files (zip, movie etc) and all seem to be corrupt when I try to run them from the network.
    I've swapped the ethernet cable, tried the second network port and I have been moved to a new port on the switch in the server room.
    Does anyone have any ideas?
    Thank you in advance

    Hmmm, open Network Utility in Applications>Utilities>Info tab, select the Interface you're using, copy a big file & see if there are any errors or collisions on the right, or if it always happen after a certain number of packets.
    Also, what Link speed & packet size is it using? What Format is the Network Drive?

Maybe you are looking for

  • "songs..can't be updated b/c all the playlists for updating no longer exist

    My Ipod was "off power" for so long that it "forgot" all its music. Now when I plug it in to my base computer, rather then synching it says "songs on the ipod "name" cannot be updated because all the playlists for updating no longer exist"

  • Run time Error while executing Project Info system Reports (CN41/CN41N)

    Hi, I would like to inform while running project infosystems reports (CN41/41N / cns41 etc), it is taking long time & most of the time run time errors are coming. I observed due to more objects in projects, run time error is coming. Request you to su

  • Output through interface

    Hey, My headphone jack crapped out so I would like to listen to my iTunes through my Firewire interface but cannot find a place in preferances to do that...is it possible?

  • UC560 unity express

    How to view the Prompts file on the CUE using command line?when viewing the files using show flash,those prompts files(.wav) are not viewed?

  • Managing Change With Oracle Change Management Pack

    I have an oas v4.0.8 is running under RHlinux 6.1. however, I have a long list of ip numbers need to input in one group. under the VI editor's limitation, i can't have all the ip number in one group. so I need to seperate them into couple groups. so