Y0G Цитата: Ошибка в файлах Portable-изации.
Загляни в PortableSmartFTP.zip ->
файл Source\PortableSmartFTP.au3
в этом файле исходник (AutoIt Script) проги, которая запускает SmatFTP в portable варианте
Привожу файл целиком, т.к. он не так велик
Код: ; AutoIt Script File
;
http://www.autoitscript.com ;
; Authors: Mr Chris, Mathias Berchtold <mb@smartftp.com>
; Do not show tray icon when AutoIt starts
#NoTrayIcon
; Imports the registry settings.
RunWait (@ComSpec & ' /c reg import PortableSmartFTP.reg', '', @SW_HIDE)
; For Custom Commands, History, Recent Folders, Transfer Queue and Cache
DirCreate(@ScriptDir & '\AppData')
RegWrite("HKEY_CURRENT_USER\SOFTWARE\SmartFTP\Client 2.0\Settings\General", "Application Data Folder", "REG_EXPAND_SZ", @ScriptDir & '\AppData' )
; Default Download Folder
;$user_desktop = @UserProfileDir & '\Desktop'
;RegWrite("HKEY_CURRENT_USER\SOFTWARE\SmartFTP\Client 2.0\Settings\General", "Default Download Folder", "REG_EXPAND_SZ", $user_desktop )
; Favorites
DirCreate(@ScriptDir & '\Favorites')
RegWrite("HKEY_CURRENT_USER\SOFTWARE\SmartFTP\Client 2.0\Settings\General", "Favorites Folder", "REG_EXPAND_SZ", @ScriptDir & '\Favorites' )
; Backup Folder
DirCreate(@ScriptDir & '\Backup')
RegWrite("HKEY_CURRENT_USER\SOFTWARE\SmartFTP\Client 2.0\Settings\Backup", "Folder", "REG_EXPAND_SZ", @ScriptDir & '\Backup' )
; Opens SmartFTP Client
Runwait (@ScriptDir & '\SmartFTP.exe')
; This line will export all registry settings for the application, That way any changes made while the application
; was open can be saved and or used for next time SmartFTP is launched.
RunWait(@ComSpec & ' /c reg export "HKCU\Software\SmartFTP\Client 2.0" PortableSmartFTP.reg', '', @SW_HIDE)
; Deletes the registry settings when program is closed.
RunWait (@ComSpec & ' /c reg delete "HKCU\Software\SmartFTP\Client 2.0" /f', '', @SW_HIDE)