Welcome, Visitor!

Hello, we are really happy that you have reached us. However, since you are viewing the forum as a visitor, you cannot benefit from many features of the forum. How about taking advantage of all the features exclusive to our members by registering? You can register right now, taking just 2 minutes of your time. We would love to see you among us.

Visual Basic Dersleri ( Ders 6)

D

dmxlimithra

Yaptıkların Kadar Yapmadıklarından da Sorumlusun !
Thread Starter
Ultra Member
Joined
Jan 23, 2023
Messages
314
Reaction score
37
Points
28
Ders 6 - Dosya Ve Klasör İşlemleri


6.1) Dosya İşlemleri;



A)Dosya Taşıma

Kod:
My.Computer.FileSystem.MoveFile("Dosyanın Bulunduğu Konum","Dosyanın Taşınacağı Konum")


B)Dosya Silme


Kod:
My.Computer.FileSystem.DeleteFile("Silinecek Dosya Konumu")



C)Dosya Kopyalama


Kod:
My.Computer.FileSystem.CopyFile("Konum","Hedef",True)



D)Dosyayı Yeniden Adlandırma


Kod:
My.Computer.FileSystem.RenameFile("Değiştirilecek Dosya Konumu","Yeni Ad")




6.2) Klasör İşlemleri;



A)Klasör Oluşturma

Kod:
My.Computer.FileSystem.CreateDirectory("Oluşturulacak Klasör")




B)Klasör Silme


Kod:
My.Computer.FileSystem.DeleteDirectory("Silinecek Klasör",FileIO.DeleteDirectoryOption.DeleteAllContents)


C)Klasör Taşıma


Kod:
My.Computer.FileSystem.MoveDirectory("Kaynak","Hedef")



D)Klasör Kopyalama


Kod:
My.Computer.FileSystem.CopyDirectory("Kaynak","Hedef")




E)Klasörü Yeniden Adlandırma



Kod:
My.Computer.FileSystem.RenameDirectory("Klasör","Yeni Ad")










.
 
B

berkmz06

Active Member
Joined
Dec 5, 2022
Messages
45
Reaction score
0
Points
6
eyw yavrm eline saglık devamı gelsnnn
 
SPAM IS FORBIDDEN!
  • SPAMMERS ARE BANNED FROM THE FORUM AND CANNOT USE ANY OF THE CHEATS
  • For example: thanks, thx, very good, asdqwe, working, ty and so on!
  • For example: Writing the same message over and over. thanks, thx and so on!
  • Copying and copying someone else's message is prohibited.
  • It is forbidden to send messages to increase the number of comments on threads that you have no knowledge of.
  • Write your own opinion when commenting!
  • If you see spam message, please let us know with the REPORT button!

Theme editor

Top Bottom