Runtime Error on invoking from commandline


when invoking smartftp from the commandline with

smartft.exe ftp://user:pass@server

i'll get an Runtime Error

OS is WinXP SP2 fully patched
smartftp is 2.0.993


Hi, what exact build are you using? because with 2.0.993.9 i am unable to reproduct your problem, not with x86 or x64 versions.

i think it only happens with special char in username/password?

+- System -----------------------------
Microsoft Windows XP Professional
Service Pack 2 (Build 2600)

CPU Speed : 2992 MHz
Total Memory : 1047532 KB
Free Memory : 360728 KB

+- SmartFTP ---------------------------
Version : 2.0.993.6
Time Stamp : 2006-01-22 19:26:21
Platform : x86

+- Application DLL --------------------
sfFTPLib.dll :
SmartHook.dll :

+- Language ---------------------------
SmartFTP.exe : 2.0.993.6

+- System DLL -------------------------
unicows.dll : 1.0.3703.0
shell32.dll : 6.00.2900.2763 (xpsp_sp2_gdr.050922-1642)
shlwapi.dll : 6.00.2900.2781 (xpsp_sp2_gdr.051020-1730)
comctl32.dll : 6.0 (xpsp_sp2_rtm.040803-2158)
riched20.dll :
schannel.dll : 5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)

+- Internet Explorer ------------------
Version : 6.0.2900.2180

+- Winsock ----------------------------
Winsock : 2.2

yeah great! thx....

there's still the problem with an '@' in usernames.... would be nice if url could be parsed from right to left instead from left to right


You have to hex encode special characters in the URL.

that's pretty anoying because url is often saved why does it have to be hex encoded? it would be easy if you would parse from right to first '@', thats the hostname.... no special chars allowed there... then parse to next ':' that's the pw.... no one woul use a ':' in a password i guess .....

Per FTP standard, '@' is simply not allowed as part of the username, that is why you will have to escape (by hex-encoding) it.