|
-
Feb 20th, 2007, 01:04 AM
#1
Thread Starter
Just Married
Share folder in the VB.NET
Hi all
In the development of VB.NET Project I add two folder in it, I want to share that folder so what is the best solution.
Thanks
-
Feb 20th, 2007, 02:54 AM
#2
Re: Share folder in the VB.NET
You will need to write some code to create the share for that folder and run that code after the installation is complete.
-
Feb 20th, 2007, 02:59 AM
#3
Re: Share folder in the VB.NET
The best place for an apps shared folder(s) would be to install them in the All Users Shared folder in 2000/XP or C:\Users\Public in Vista.
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 
-
Feb 20th, 2007, 03:00 AM
#4
Re: Share folder in the VB.NET
I was thinking he was talking about Network share.
Maybe not...
-
Feb 20th, 2007, 03:03 AM
#5
Re: Share folder in the VB.NET
Oh yes, that could be another situation.
Shakti, please clarify.
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 
-
Feb 20th, 2007, 03:14 AM
#6
Thread Starter
Just Married
Re: Share folder in the VB.NET
soory sir for late reply
I was busy in other problem
Actually i want to share my database folder so the other user can use the server database on LAN
Thanks
-
Feb 20th, 2007, 03:40 AM
#7
Re: Share folder in the VB.NET
Just right click on the folder and select Sharing and Security > select "Share this folder" > enter in a name if you want it named something different > click Permissions button > select the level of access which should be Read and Modify permissions at a minimum.
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 
-
Feb 20th, 2007, 03:43 AM
#8
Re: Share folder in the VB.NET
I think he wants to automate it.
-
Feb 20th, 2007, 03:47 AM
#9
Thread Starter
Just Married
Re: Share folder in the VB.NET
Sir this is manually but can we do it automatically means when I install the set up then it automatically share the database folder with all permission.
Thanks
-
Feb 20th, 2007, 03:54 AM
#10
Re: Share folder in the VB.NET
I believe you will need the MS Network SDK to perfom that task.
-
Feb 20th, 2007, 05:10 AM
#11
Re: Share folder in the VB.NET
I'm guessing that it would require the use of the Windows API to perfrom the actual sharing, but as for where and when to do it, I'd suggest adding an InstallerClass to your project, handling it's AfterInstall event and doing it there. You'd then add that InstallerClass as a Custom Action to your Setup project.
-
Feb 20th, 2007, 05:28 AM
#12
Thread Starter
Just Married
Re: Share folder in the VB.NET
But sir main basic question in my mind is that VS.NET setup project is able to share the folder or not, that is added in it.
Or instead of it we run other code for sharing the folder on the network, because in VB I use different code for sharing a folder on the network.
-
Feb 20th, 2007, 07:28 AM
#13
Re: Share folder in the VB.NET
If you click on your folder in the Setup project's File System window then go to the Properties window do you see a property to make the folder shared? No you don't, so you have to do it in code. As I said, I would use a Custom Action.
-
Feb 20th, 2007, 07:56 AM
#14
Thread Starter
Just Married
-
Feb 20th, 2007, 12:15 PM
#15
Re: Share folder in the VB.NET
There is no share property. You need to do it via code. I havent seen a reliable method that would work without corrupting the folder settings.
http://allapi.mentalis.org/apilist/S...Security.shtml has an example on setting the security properties but flakey at best.
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 
-
Feb 21st, 2007, 04:27 AM
#16
Thread Starter
Just Married
Re: Share folder in the VB.NET
 Originally Posted by jmcilhinney
As I said, I would use a Custom Action.
Sir what type of custom action you are talking about
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
|