Jump to content

Karışık Klasörlerin Içindeki Karışık Dosya Uzantı


Mehmet
 Share

Recommended Posts

[spoiler][img]http://i.imgur.com/XcmFz.jpg[/img][img]http://i.imgur.com/Wffee.jpg[/img][/spoiler]
resimdede görüldüğü gibi karışık klasör isimleri var ve içerisinde farklı uzantılı dosyalar.
içerisinden kopyalayıp çıkaramazmıyız
.exe
.dll
.txt
.sys
.cat
.inf
.tag
.bin
.nvu
bu uzantıdaki dosyaları veya tüm uzantılar içinde olabilir Edited by MeHMeTBeN
Link to comment
Share on other sites

Ne demek istediğini tam anlayamadım. Şimdi o klasörün içindeki dosyaların hepsini kopyalamak mı istiyorsun. Nereye, nasıl kopyalayacaksın? Biraz daha açığa vur.
Sadece klasörün içindeki dosyaları mı kopyalamak istiyorsun yoksa topyekün mü?
Kopyalamak kolay: DirCopy()

Edited by asmazh
Link to comment
Share on other sites

[code]$sDir = "C:\Documents and Settings\Kullanıcı\Belgelerim\Downloads"
_FileListCopy($sDir, "*", "D:\Yeni Klasör")

Func _FileListCopy($sPath, $sFilter = "*", $CopyDir = @DesktopDir)
$sPath = StringRegExpReplace($sPath, "[\\/]+\z", "") & "\" ; ensure single trailing backslash
If Not FileExists($sPath) Then Return SetError(1, 1, "")
$hSearch = FileFindFirstFile($sPath & $sFilter)
If @error Then Return SetError(4, 4, "")
While 1
$sFile = FileFindNextFile($hSearch)
If @error Then ExitLoop
If @extended Then
_FileListCopy($sPath & "\" & $sFile , "*", "D:\Yeni Klasör")
Else
FileCopy($sPath & $sFile, $CopyDir & "\" & $sFile, 1)
EndIf
WEnd
EndFunc ;==>_FileListCopy
[/code]
Düzelttim :)
Buyur kardeş, yardım klasörünü biraz kurcala!

Edited by asmazh
Link to comment
Share on other sites

oldu teşekkürler blackman12 asmazh
driverpatc slotion içerisindeki dosyaların tümünü kopyalamam gerekiyordu tektek zor oluyor bu örnekle çokdaha güzel şeyler yapılabilir tekrardan teşekkürler :)

Edited by MeHMeTBeN
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...