Что нового

[Сеть, интернет] Как оптимально сжать скрипт.

vanekzver

Новичок
Сообщения
91
Репутация
2
Autoit : 3.3.8.3

Описание :
Скрипт если если есть файл, перемещает его, запускает, потом удаляет
Если нет файла, качает, запускает, удаляет.

Можно ли как нибудь сжать скрипт, чтобы было меньше строчек.
Код:
If GUICtrlRead($Utorrent) = 1 Then
			If FileExists (@ScriptDir&'\Include\utorrent_setup.inst') Then
				FileCopy (@ScriptDir&'\Include\utorrent_setup.inst', @ProgramFilesDir&'\Include\utorrent_setup.exe')
				RunWait (@ProgramFilesDir&'\Include\utorrent_setup.exe')
				FileDelete (@ProgramFilesDir&'\Include\utorrent_setup.exe')
			Else
				InetGet("http://sait.com/utorrent.inst",@ProgramFilesDir&'\Include\utorrent_setup.exe',1,0)
				RunWait (@ProgramFilesDir&'\Include\utorrent_setup.exe')
				FileDelete (@ProgramFilesDir&'\Include\utorrent_setup.exe')
		EndIf
 

AZJIO

Меценат
Меценат
Сообщения
2,901
Репутация
1,200
Верх