Results 1 to 7 of 7

Thread: [RESOLVED] Exe on Shared Folder Questions

  1. #1

    Thread Starter
    Addicted Member charmedcharmer's Avatar
    Join Date
    Sep 2003
    Posts
    211

    Resolved [RESOLVED] Exe on Shared Folder Questions

    Hi guys. Its about time that I do this, I have an application which is being run on several workstations. My problem now is that everytime I update my program, I tediously update all workstations. I was going to use a batch file to update the workstations but we have this network access control program that have so many policies.

    So I was thinking of placing the application on a shared folder on a server, then have the workstations run the application using a shortcut pointed to the exe on the server. I haven't tried this before so I have a few questions:

    1. Which resources are being used? The workstation's or the PC's?

    2. Should there be any precautions I should consider especially that my application is connecting to a database?

    3. What exactly is this method called. I want to search it on google and get some more info
    Thanks in advance
    Last edited by charmedcharmer; May 26th, 2008 at 10:02 PM.
    C++ Programming is overwhelming.

    Dont let it overwhelm you or you'll fall into the oblivion of its perfection

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Exe on Shared Folder Questions

    As long as all dependency files are installed and registered on the workstation, the exe should run from the network without a hitch.

    This could cause a lot of network traffic however, depending on how many contiguous users there are.

    Obviously, if the server goes down, the app goes down with it.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Exe on Shared Folder Questions

    1. Workstation. The EXE gets copied to the local machine and is then executed.
    2. Those should be taken care of within the code. Other considerations may include allowing users access to that shared folder. They should have your VB6 runtimes or .NET framework present, depending on what you used to write it. If you have class libraries associated with the exe that need to be present in the same folder as the EXE, then it will get complicated, as the DLLs won't get copied over. (Someone confirm this please?)
    3. I doubt it has a name, but not entirely sure.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Exe on Shared Folder Questions

    Quote Originally Posted by mendhak
    1. Workstation. The EXE gets copied to the local machine and is then executed.
    2. Those should be taken care of within the code. Other considerations may include allowing users access to that shared folder. They should have your VB6 runtimes or .NET framework present, depending on what you used to write it. If you have class libraries associated with the exe that need to be present in the same folder as the EXE, then it will get complicated, as the DLLs won't get copied over. (Someone confirm this please?)
    3. I doubt it has a name, but not entirely sure.
    1. Correct.
    2. Proper disconnection and cleanup code. Multiuser access will be an issue if using an Access db. IMO, its safer to just place the exe in the network folder/share and have the dependancies in place on each workstation.
    3. Maybe search on "Run exe from network share".
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Exe on Shared Folder Questions

    Just remembering, on #2 if you include the dlls and supporting files in the network folder they dont get copied over, true, but when the exe is run if the working directory is the network location then the exe wil look in the app.path location first before it looks to the system32 or windows directory which will be the network location. This can add to system resources being used and also slow down the performance of the app due to the increase in network traffic and latency.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Addicted Member charmedcharmer's Avatar
    Join Date
    Sep 2003
    Posts
    211

    Re: Exe on Shared Folder Questions

    Thank you very much. It's been a great help. Sorry for the late response though. I will try it this time around. Again, thank you.
    C++ Programming is overwhelming.

    Dont let it overwhelm you or you'll fall into the oblivion of its perfection

  7. #7
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [RESOLVED] Exe on Shared Folder Questions

    A Web Service would be safer and abstract the database calls to prevent others from getting your connection strings and other information (for #2).
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

Posting Permissions

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



Click Here to Expand Forum to Full Width