OK, I'm trying to do an old version of Serv-U FTP server. ServU6Portable.ini is set to write the paths to the serv-u ini. Something like:
[FileWrite3] File=%PAL:AppDir%\ServU6Portable\ServUDaemon.ini Type=ConfigWrite Entry=Access1= Value=%PAL:DataDir%\FTP|RL
and it works fine normally, but if I compress the whole package as an SFX Rar set to execute the PA launcher, the paths get written with DOS names, like:
Access1=C:\DOCUME~1\user\LOCALS~1\Temp\RarSFX0\Data\FTP|RL
and this causes access to be stopped.
Any reason for this? I know PAL isn't meant to be ran like this, but I still see no reason why this would happen? Any ideas?
Theoretically, 8.3 filenames should never cause a program to stop working correctly. All applications should use Windows' path handling functionality which prevents all such problems. However, many things don't.
My guess would be that the RAR SFX thing uses short paths when running the app for historical reasons (apps that couldn't cope with it ten or fifteen years ago, I'd guess). PAL will use the path that it's been run from, and that is the short version.
As you say, PAL isn't meant to be run like this. (Why would you want to use it this way, anyway?)
If you really feel the need to change the behaviour of this so that it expands the path, delve into the realm of custom code:
Then you will be able to use
%DataDirLong%
instead of%PAL:DataDir%
.I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
Well that's over my head, and I wouldn't even know in which file that goes, but I thank you for the info.
The manual covers custom code.
I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
Be careful not to use Serv-U v6 for any Internet-facing application. The v6 release was published in 2004 and v6 updates were discontinued in 2008. Since 2008 some security vulnerabilities in v6 have been discovered and have only been fixed in current versions of Serv-U.
Instead of using Serv-U v6, please consider updating to version 11 or version 12 (coming in May) for any Internet-facing use.
Thanks for the heads-up. This is mostly me learning PAL and I'm not doing any serious serving. In fact, I can't even forward ports ATM, not to mention that this old laptop can't handle anything newer.