Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 10:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB 2010] File Copy fail

Discussion on [VB 2010] File Copy fail within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
Benjihz's Avatar
 
elite*gold: 100
Join Date: Feb 2012
Posts: 2,341
Received Thanks: 207
[VB 2010] File Copy fail

Hey,

Ich hab versucht mit My.Computer.Filesystem.Copyfile eine txt von einem Ordner in einen Ordner zu kopieren, und dann mit Delete zu löschen. Allerdings bekomm ich da ne IOExeption das in dem Zielpfand schon ein Verzeichnes vorhanden ist, ich will doch aber eine txt kopieren.
Wieso ist das so?

Mit freundlichen Grüßen,
Benny
Benjihz is offline  
Old 04/06/2013, 20:58   #2


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,220
Received Thanks: 6,758
Zeig uns dafür am besten mal deinen Codeschnipsel der das kopieren betrifft.
Weiß aber auch nicht, was genau da dein Problem sein sollte:

Code:
My.Computer.FileSystem.CopyFile(old_file, new_file, True)
True / False halt, ob die UI angezeigt werden soll.
#SoNiice is offline  
Old 04/06/2013, 21:25   #3
 
Benjihz's Avatar
 
elite*gold: 100
Join Date: Feb 2012
Posts: 2,341
Received Thanks: 207
Quote:
Originally Posted by SoNiice View Post
Zeig uns dafür am besten mal deinen Codeschnipsel der das kopieren betrifft.
Weiß aber auch nicht, was genau da dein Problem sein sollte:

Code:
My.Computer.FileSystem.CopyFile(old_file, new_file, True)
True / False halt, ob die UI angezeigt werden soll.
Code(Tapatalk.2) : My.Computer.Filesystem.CopyFile(Textbox1.text, "C:\Users\Tagesarbeit\Desktop", true)

My.Computer.Filesystem.DeleteFile(Textbox1.text)
Benjihz is offline  
Old 04/06/2013, 21:27   #4


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,220
Received Thanks: 6,758
Du musst auch angeben, wie die Datei im neuen Pfad heißen soll.

"C:\Users\Tagesarbeit\Desktop\new_file_name"
#SoNiice is offline  
Reply


Similar Threads Similar Threads
[C#] Dateien per File.Copy kopieren - Fehler?
05/20/2012 - .NET Languages - 2 Replies
Hallo :) Ich hab grade ein kleines Problemchen mit einem Projekt, und zwar wollte ich ein Programm zum erstellen von Backups (Minecraft :D) erstellen, aber es klappt nicht so ganz. Ich habe mal den Code auf das Relevante gekürzt (Using bla bla ist alles drin^^): namespace MinecraftBackup { public partial class Form1 : Form
failed to copy file needed for patch
11/03/2011 - S4 League - 1 Replies
hey was kann ich dagegen tuen ?
[Help]2010-er server file, game file, anything..
04/10/2011 - Metin2 Private Server - 0 Replies
Hi all!:) Before everything, I've used the searcher, but I haven't found the answers. I hope you can help me. Problem 1. I downloaded the 2010-er server file http://www.elitepvpers.com/forum/metin2-pserver-gui des-strategies/1076953-release-2010er-serverfiles- 1675-noob-edition.html]. I installed this, everything is okay, but when I launch the game, before loading, the client is closed, and the Windows writes "metin2.exe working stopped". What have to do? Problem 2. It's about also...
Pak File Open Fail
11/03/2010 - SRO Private Server - 0 Replies
i downloaded the client from http://www.elitepvpers.com/forum/private-sro-main-d iscussions-questions/706571-megaupload-swsro-2-cli ent-new.html and the media.pk2 from Index of / put them all together in one folder, and it gives me pak file open fail error help? it is swsro2 btw



All times are GMT +1. The time now is 10:57.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.