Results 1 to 2 of 2
  1. #1
    alextijuca is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Feb 2015
    Posts
    6

    shell instruction do not recognize name of computer in a local network

    Hello.



    I have a Shell instruction that accesses a Word file in the C: correctly. However, when I connect that computer into a local network and give it a name, and also change the path in the instruction to reach the file, it doesn´t reach the file anymore and returns an error saying "file not found".

    The instruction originally is:
    test = Shell("winword.EXE c:\Autos_2001\Edit01_alimentos.doc", 3)

    Then I changed it to:
    test = Shell("winword.EXE \\fiscais1\c:\Autos_2001\Edit01_alimentos.doc", 3)

    "fiscais1" is the name of the computer in the network.

    I wonder if the Shell instruction has a limitation on the path size or something like that.

    Thanks for any help.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,926
    Don't use letter path designation with UNC path.

    test = Shell("winword.EXE \\fiscais1\Autos_2001\Edit01_alimentos.doc", 3)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Use network and local backend
    By andythepandy93 in forum Access
    Replies: 2
    Last Post: 11-15-2012, 11:24 AM
  2. Replies: 1
    Last Post: 05-25-2012, 10:36 AM
  3. Replies: 1
    Last Post: 04-08-2012, 11:42 PM
  4. Creating a local network Database
    By blukit01 in forum SQL Server
    Replies: 1
    Last Post: 03-15-2012, 01:20 PM
  5. Pass Through Queries - Local and Network Tables
    By vinfurnier in forum Queries
    Replies: 1
    Last Post: 03-31-2011, 11:18 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums