|
-
Nov 11th, 2007, 04:58 PM
#1
Thread Starter
Junior Member
When making my program exe.
OK,
I have a question. I am a few months from really needing to know this, but I figure I better start getting some answers. I am writing a program in Visual Basics. My program will require a few .txt files to be in the users C: drive. When making my program exe. 1. How do I attach the .txt files with the package? 2. How do I get the program to load these .txt files to the users C: folder? I don't want the user to have to move files around for my program to work. I simply want them to be able to download my program and it does all the work for them. When a user downloads my program from my web site, I need the .txt files to go to the C: folder because that's the path I used.
Thanks
-
Nov 11th, 2007, 05:03 PM
#2
Re: When making my program exe.
Are you using Visual Basic 6 or the VBA editor behind one of the Office apps?
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 
-
Nov 12th, 2007, 05:24 AM
#3
Re: When making my program exe.
It sounds like you may have posted this in the wrong Forum. This forum is for developing applications in Microsoft Office, not in VB6 or VB.Net.
If this is the correct forum, then I'm afraid you can't make an executable out of an Office document.
If not, then it depends which version of VB you are using. In both versions, there is a built-in installer but it is much better for VB.Net than for VB6 and in that case you would be better off using one of a number of other install packages that are widely available.
In either case, have a look in the Application Deployment forum, where you will find many answers for whichever version of VB you are using.
-
Nov 12th, 2007, 02:17 PM
#4
Re: When making my program exe.
Only version of Office that can is the Developer version.
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 
-
Nov 13th, 2007, 09:17 AM
#5
Re: When making my program exe.
Nobody uses that. Or VSTO.
-
Nov 13th, 2007, 03:35 PM
#6
Re: When making my program exe.
the OP says visual basics, so maybe this is not the right forum and as it is a deployment issue still the wrong forum
it would be bad practice to put any dependent files into the root folder of drive C:, as there could be security or permissions issues, with Vista even using App.Path could still have issues, as far as actually doing it you need to be looking at the instructions for the packaging program you are going to use for your setup/ installation
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
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
|