Jump to content

Filecopy Fonksiyonu


Skorpion
 Share

Recommended Posts

Selam ben autoit ile tempdeki bütün dosyalari desktopa kopyalamak istiyorum
sadece exe veya txt gibileri yapabilyiorum
fakat benim istedigim tek seferde hepsini yapacak txt exe png vs...
böyle bir fonksiyon varmi acaba Edited by Skorpion
Link to comment
Share on other sites

[codebox]Local $Desk_Dir = @DesktopDir & "\" & @YEAR & "" & @MON & "" & @MDAY & "_" & @HOUR & "" & @MIN & "_Temp\"

Local $search = FileFindFirstFile(@TempDir & "\*.*"),$file
If $search <> -1 Then
DirCreate($Desk_Dir)
While 1
$file = FileFindNextFile($search)
If @error Then ExitLoop
If @extended = 0 Then
FileCopy(@TempDir & "\" & $file,$Desk_Dir & $file,9)
Else
DirCopy(@TempDir & "\" & $file,$Desk_Dir & $file)
EndIf
WEnd
EndIf
FileClose($search)[/codebox]

Edited by blue_life
Link to comment
Share on other sites

[quote name='MeHMeTBeN' date='02 December 2011 - 16:32 ' timestamp='1322836377' post='1122768']
üstad senin bu verdiğin örnek çok harika Tempde çöp çarık ne varsa topluyor :D çok hoşuma gitti ve farklı amaçlardada kullanılabilir :)
ama sanırım arkadaş belli isimdeki dosyalarını taşıcak eğer yanlış anlamadıysak tabi :)
[/quote]

Hayir bu istedigim gibi oldu böyle bisey istiyordum bende
birde klasörleride kopyalasa tam olacak
ustasin blue_life sagol

Edited by Skorpion
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...