+ Reply to Thread
Results 1 to 5 of 5

Script or .bat needed to open office file file located in LAN

  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Smile Script or .bat needed to open office file file located in LAN

    Hello,


    I need to start a specific access database file (12.accdb) that is placed on a local server, from all the local clients.


    I wrote this .bat file:

    @echo off
    START "Access" "C:\12.accdb"
    exit

    Than I converted bat to exe (I need to do this because I have to change ICON)

    than I created a shortut of that .exe file in the LAN shared folder.
    It runs well if the OS of both clients and server are windows vista/7/8
    If the server has WINXP installed tring to open from a client it reports an error: "C:\12.accdb" not found"

    WHY ????

    ....I would need an "universal" .bat or script file that can runs this document independant of the OS installed in the clients or in the server. (It will be installed in more than 10 LAN, each one may have different windows versions)

    Maybe a script can works?
    What do you reccomend me?


    THANKS
    Last edited by 823; 02-28-2015 at 11:07 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Script or .bat needed to open office file file located in LAN

    Hello 823,

    So if Windows XP, which is 32 bit only, gives you an error then your server is probably running on a 64 bit Office platform.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Script or .bat needed to open office file file located in LAN

    Hello,

    Thanks for reply....i'm not sure but I think the xp server is 64 bit.


    Anyway how can I do?


    Do you have any solutions to try to fix my problem?


    Thanks

  4. #4
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Script or .bat needed to open office file file located in LAN

    The problem I have is this:

    File 12.accdb is placed on server.
    If I place the shotcut of 12.accdb in the shared folder of the server, from every clients I can open the db with the shorcut placed in the shared folder. This is ok for me, but I need to change icon of that shortcut permanetly. (If the shortuct will be copied in antoher pc it will have to maintain same icon).
    The only way I know to change the icon of a shortcut permanently is build an exe compiled with the desired icon, that contains a .bat or script file that opens 12.accdb file. But in this way I have the problem I've expleained in the previous post.

    I don't know if there's another easy way to change icon permanently.

    Can you help me please?


    Thanks
    Last edited by 823; 02-27-2015 at 04:49 PM.

  5. #5
    Registered User
    Join Date
    02-06-2015
    Location
    Italy
    MS-Off Ver
    Office 2007 & 2013
    Posts
    78

    Re: Script or .bat needed to open office file file located in LAN

    nobody can help plz?


    or have a better Idea to change in a permanent way an icon shorcut?

    thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 05-28-2014, 02:45 AM
  2. Replies: 5
    Last Post: 12-10-2013, 01:27 PM
  3. [SOLVED] open variably named file, copy/paste data into consolidation file, open next file in list
    By sllawrence1968 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2012, 09:49 PM
  4. Replies: 2
    Last Post: 03-26-2012, 07:12 PM
  5. [SOLVED] Office 2003 - "autocomplete" in file | open or file | save no longer works
    By Lanwench [MVP - Exchange] in forum Excel General
    Replies: 4
    Last Post: 01-11-2005, 10:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1