Search the Community
Showing results for tags 'console'.
-
Autoit ile arayüz oluşturup GUI yapabilir, hiç arayüz oluşturmadan sadece bir script olarak da derleyip kullanabilirsiniz. Bunlara ek olarak konsol uygulamaları geliştirmek de mümkün. Dosya boyutunu gösteren basit bir örnek hazırladım. If Not $CmdLine[0] = 0 Then If FileExists($CmdLine[1]) Then $Size = _GetSizeFormatted($CmdLine[1]) ConsoleWrite("Dosya : " & $CmdLine[1] & " Boyut : " & $Size) EndIf Else ConsoleWrite("Komutlar : " & @ScriptName & ' "' & "Dosya Dizini" & '"') EndIf Func _GetSizeFormatted($File) $Boyut = FileGetSize($File) $Yuvarla = Round($Boyut / 1024, 2) If $Yuvarla < 1024 Then Return $Yuvarla & " KB" ElseIf $Yuvarla > 1024 And $Yuvarla < 1048576 Then $Yuvarla = $Yuvarla / 1024 $Yuvarla = Round($Yuvarla, 2) Return $Yuvarla & " MB" ElseIf $Yuvarla > 1048576 Then $Yuvarla = $Yuvarla / 1024 / 1024 $Yuvarla = Round($Yuvarla, 2) Return $Yuvarla & " GB" EndIf EndFunc ;==>_GetSizeFormatted Kodları scripte yazdıktan sonra derleme işlemi için aşağıdaki resimlere bakabilirsiniz. [spoiler] [/spoiler]