-
Mar 13th, 2012, 11:00 AM
#1
Thread Starter
Member
[RESOLVED] need help coping a file in visual basic 2010
hello all im having problems copying a file to another folder and replacing the original im trying to copy a dll to another folder but it says you can do this because the file already exists in this folder how can i do it so it will replace the original
thank you elfenliedtopfan5
-
Mar 13th, 2012, 11:06 AM
#2
Re: need help coping a file in visual basic 2010
Overwriting dll files can be dangerous. Is the current file being used? on what folder are you doing this?
More important than the will to succeed, is the will to prepare for success.
Please rate the posts, your comments are the fuel to keep helping people
-
Mar 13th, 2012, 11:10 AM
#3
Thread Starter
Member
Re: need help coping a file in visual basic 2010
Originally Posted by kaliman79912
Overwriting dll files can be dangerous. Is the current file being used? on what folder are you doing this?
adobe after effects cs5 amtlib.dll trust me it wont mess up the program but i want to make a program that will replace the original with one i made bit it keeps erroring it i have vb running in admin mode as well
-
Mar 13th, 2012, 11:24 AM
#4
Re: need help coping a file in visual basic 2010
*sigh* this is quickly rising to the top...
Canned Standard Response to VBForums post #5 - We're not clairvoyant, we cannot read minds. We are also not sitting in your lap, nor are we looking over your shoulder, so it would stand to reason that we cannot see your monitor. Since we cannot see your monitor, common sense would tell you that we cannot see you code. Further more, I submit that we also cannot see or know what the error is that you are getting. So, we have two, make that three choices here. 1) you post the code you are using, note the line that the error is happening on and WHAT the error is, 2) we all grab a stick and continue to beat around the bush and mock each other, or 3) I tell you to remove the eels from your hovercraft, and we ll get on with our lives.
-tg
-
Mar 13th, 2012, 05:21 PM
#5
New Member
Re: need help coping a file in visual basic 2010
How about just delete the file, then write the new one?
-
Mar 13th, 2012, 06:59 PM
#6
Thread Starter
Member
Re: need help coping a file in visual basic 2010
Originally Posted by techgnome
*sigh* this is quickly rising to the top...
Canned Standard Response to VBForums post #5 - We're not clairvoyant, we cannot read minds. We are also not sitting in your lap, nor are we looking over your shoulder, so it would stand to reason that we cannot see your monitor. Since we cannot see your monitor, common sense would tell you that we cannot see you code. Further more, I submit that we also cannot see or know what the error is that you are getting. So, we have two, make that three choices here. 1) you post the code you are using, note the line that the error is happening on and WHAT the error is, 2) we all grab a stick and continue to beat around the bush and mock each other, or 3) I tell you to remove the eels from your hovercraft, and we ll get on with our lives.
-tg
thank you for your reply and your right here is a image of the error i am getting thank you
-
Mar 13th, 2012, 08:34 PM
#7
Re: need help coping a file in visual basic 2010
You have a typo in the file path.
"CC:\Program Files\....."
-
Mar 13th, 2012, 09:11 PM
#8
Thread Starter
Member
Re: need help coping a file in visual basic 2010
Originally Posted by Chris001
You have a typo in the file path.
"CC:\Program Files\....."
lmao never noticed that but heres another error
-
Mar 13th, 2012, 10:19 PM
#9
Re: need help coping a file in visual basic 2010
You must specify a full file path as second parameter, not just the directory path.
-
Mar 13th, 2012, 10:29 PM
#10
Thread Starter
Member
Re: need help coping a file in visual basic 2010
Originally Posted by Chris001
You must specify a full file path as second parameter, not just the directory path.
yes i just figerd that one out like 20 seconds ago because it worked for the host files looked at what i done and yay it worked and thank you your response would have resolved it for me thank you plus one rep if you can do that here
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
|