oreg
asked on
Shortcuts and Files
Hi there...I am useing Visual Basic 5.0 Professional, and would like to know how to do the following :
1) Create a program group, and shortcut file on the start menu (say, "My Program" - group...and "Program" - .lnk file to start program, in that group.
2) How do you copy a file using VB...say, "File1.txt" in C:\Windows to "File2.txt" in C:\My Program...or something like that.
Thanks,
Oreg
1) Create a program group, and shortcut file on the start menu (say, "My Program" - group...and "Program" - .lnk file to start program, in that group.
2) How do you copy a file using VB...say, "File1.txt" in C:\Windows to "File2.txt" in C:\My Program...or something like that.
Thanks,
Oreg
look at the example program used by VB's make installation program
ASKER
Telling me WHERE to look might help, I looked it over, which modules/forms contain what I want, and what is the code I want?
I can't remember where it is, but it is around the program that auto-creates installation file for you, in the VB directory
VB 3.0 and 4.0 have this program, I think 5.0 should have
VB 3.0 and 4.0 have this program, I think 5.0 should have
just look around VB's directory, it's a directory with a lot BAS, FRM and 1 project file and the codes are quite long and diffucuilt to understand
ASKER
Sorry, I am basically new to VB, and I looked through it, and most of it looked garbage to me...how about a small example like in my question...does not have to be fancy, just work.
for the shortcut, you have to wait til i get back to school and copy the souce code to you
as for the copying,
Name "c:\file1.txt" As "c:\file2.bak"
as for the copying,
Name "c:\file1.txt" As "c:\file2.bak"
ASKER
For that 'name' command, will it COPY, or rename?
it just copy
to delete the file later, use KILL
to delete the file later, use KILL
ASKER
Okay, Name and Kill are nice. What about that code for creating a program group, and icons in that group?
ASKER
Sorry, It seems you cannot, or will not answer this question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was not totally happy by this answer, but okay. I wanted more of a small example using the code. Thanks anyhow