Visual Basic Dersleri ( Ders 6)

D

dmxlimithra

Yaptıkların Kadar Yapmadıklarından da Sorumlusun !
Ultra Member
Joined
Jan 23, 2023
Messages
322
Reaction score
46
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 6, 2022
Messages
44
Reaction score
0
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!

Tema düzenleyici

Top Bottom