Runtime Error on invoking from commandline

hi,

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

Cheers
SNap

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 : 1.5.7.13
SmartHook.dll : 1.0.2.1

+- 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 : 5.30.23.1221
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


Cheers
SNap

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.