ສຳລົບບົດນີ້ແມ່ນຮຽນກັບກັບ ການຈັດການກັບໄຟລ ແລະ ໂຟນເດີ ໃນພາສາໂປຣແກຣມ Visual Basic 6
1. ການສຳເນົາໄຟລ
ໂຄ້ດ:
FileCopy(SourceFile, DestinationFile)
- SourceFile ແມ່ນໄຟລຕົ້ນທາງ
- DestinationFile ແມ່ນໄຟລປາຍທາງ
2. ການຍ້າຍໄຟລ
ໂຄ້ດ:
Name "c:/test1.txt" as "d:/temp/blabla.txt"
3. ການລົບໄຟລ
ໂຄ້ດ:
Kill "ຊື່ໄຟລ"
4. ການສ້າງໂຟນເດີ
ໂຄ້ດ:
Mkdir "ຊື່ໂຟນເດີ"
5. ການລົບໂຟນເດີ
ໂຄ້ດ:
RmDir "ຊື່ໂຟນເດີ"
ແລະ
6. ການສັ່ງເປີດໄຟລ ໂປຣແກຣມ
ໂຄ້ດ:
Shell(pathname[,windowstyle])
ຕົວຢ່າງ:
' Specifying 1 as the second argument opens the application in ' normal size and gives it the focus. Dim RetVal RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator.