Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Software Development
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router security slow software sound toshiba trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Software Development >
Visual basic 2008 installer

Reply  
Thread Tools
hockeyfreak863's Avatar
Computer Specs
Member with 148 posts.
 
Join Date: Feb 2008
Experience: Intermediate
25-Nov-2008, 03:11 PM #1
Visual basic 2008 installer
i am trying to make an application copy a file that is in the resources i want to copy it from the resource file to somewhere like the desktop this is the code i have so far and it dosnt work i need help making it.

My.Resources.Objects_server.CopyTo()
("C:\users\Administrator")
pvc_'s Avatar
Computer Specs
Member with 456 posts.
 
Join Date: Feb 2008
Location: Tampa, FL
Experience: Computer Scientist
25-Nov-2008, 07:13 PM #2
I'm not sure what you mean by resource file, but if you want to copy a file in general, you could use "system.io.copy()"
hockeyfreak863's Avatar
Computer Specs
Member with 148 posts.
 
Join Date: Feb 2008
Experience: Intermediate
25-Nov-2008, 09:33 PM #3
when i use that code it gives me an error "Copy is not a part of io"
DoubleHelix's Avatar
Trusted Advisor with 21,049 posts.
 
Join Date: Dec 2004
Experience: A little of this...a litt
25-Nov-2008, 09:47 PM #4
System.IO.File.Copy

Most Vista systems are not going to have a C:\Users\Administrator directory. Regardless, where are you going to copy the file from? If it can be copied, it can be accessed. I wouldn't want any program copying files anywhere on my hard drive without my explicit consent or outside of a defined, standard, installation procedure.
pvc_'s Avatar
Computer Specs
Member with 456 posts.
 
Join Date: Feb 2008
Location: Tampa, FL
Experience: Computer Scientist
25-Nov-2008, 09:53 PM #5
sorry, yeah I forgot the "file" part.
pvc_'s Avatar
Computer Specs
Member with 456 posts.
 
Join Date: Feb 2008
Location: Tampa, FL
Experience: Computer Scientist
25-Nov-2008, 10:00 PM #6
C:\ProgramData might be a better place for vista.
hockeyfreak863's Avatar
Computer Specs
Member with 148 posts.
 
Join Date: Feb 2008
Experience: Intermediate
25-Nov-2008, 10:31 PM #7
Quote:
Originally Posted by DoubleHelix View Post
System.IO.File.Copy

Most Vista systems are not going to have a C:\Users\Administrator directory. Regardless, where are you going to copy the file from? If it can be copied, it can be accessed. I wouldn't want any program copying files anywhere on my hard drive without my explicit consent or outside of a defined, standard, installation procedure.
im trying to make an installer, Under the users discretion, all i need it to do is copy a .zip file from the attached resources and paste it into a game folder, its a mod. The reason im putting it into an insall.exe is because people are telling me they cant get it to work
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:42 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.