|
-
May 26th, 2008, 09:39 PM
#1
Thread Starter
Addicted Member
[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
-
May 27th, 2008, 06:39 AM
#2
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.
-
May 27th, 2008, 02:51 PM
#3
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.
-
May 27th, 2008, 03:06 PM
#4
Re: Exe on Shared Folder Questions
 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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
May 27th, 2008, 03:26 PM
#5
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Jun 26th, 2008, 03:36 AM
#6
Thread Starter
Addicted Member
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
-
Jun 26th, 2008, 06:54 AM
#7
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).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|