Manual edit of FTP config file

English support forum

Moderators: Hacker, petermad, Stefan2, white

Rou
Junior Member
Junior Member
Posts: 12
Joined: 2003-11-28, 13:52 UTC
Location: Aarhus, Denmark
Contact:

Manual edit of FTP config file

Post by *Rou »

All developers in my office use a shared TC FTP config file, placed on a network drive.
My problem is, that I want to clean up in our saved FTP connections that contains over 500 entries and about 50% of these are out-dated and irrelevant. Using the FTP interface is slow because of this.

Deleting these one by one in the FTP window takes ages. Every time I delete one, the window has to be updated and resorted, which is a real pain.

I tried editing the file by hand, by use of a text editor, but something prevents the new file from being used.

I can think of several issues that might cause this, but no real reason for it to be a genuine problem for TC.
1. The numbering of the entries becomes irratic, IE several numbers are missing. Since these numbers dosnt reference the data entries later in the file, this shouldnt matter.
2. There are orphaned data entries. Again, no real reason not to accept this. TC could delete them or just leave them. They do no harm.
3. Entries with no matching data entry. Why not ask for the data when a user attempts to use the entry?

Ok, those 3 points are upgrade suggestions I guess, but what do I do in the meantime? Using the interface is horribly slow.

Christian, could you perhaps disclose how the parsing of the file works, so I can at least figure out what I do wrong?
- Rou
User avatar
CADweazle
Senior Member
Senior Member
Posts: 297
Joined: 2003-04-03, 09:10 UTC
Location: Freiburg i.Br. Deutschland

Post by *CADweazle »

Hi Rou,

I've got the same problem (little bit smaller I guess ;-)) and couldn't find a good solution either.

Two tools to remark:
- FXPsites: http://clubtotal.free.fr/tc_tools/fxpsites.zip
- TC FPT checker: http://www.aezay.dk/aezay/other/TotalCmd_Tools/TC%20FTP%20Check%20v1.1%20(02-01-29).rar

Both found on MAXwishs http://clubtotal.free.fr/modules.php?name=ExternalLink&page=index-old.html great site!

Maybe you can convince one of the authors to add a delete option??

Greetings,
Cheer up, Karl
Rou
Junior Member
Junior Member
Posts: 12
Joined: 2003-11-28, 13:52 UTC
Location: Aarhus, Denmark
Contact:

Post by *Rou »

Thanks Karl,

Both links look interesting, although neither have any impact on the problem.
Between asking the programmers to build it in and making my own small application, I think I'm leaning towards the latter. It shouldnt take more than a day and it might be fun.
- Rou
User avatar
CADweazle
Senior Member
Senior Member
Posts: 297
Joined: 2003-04-03, 09:10 UTC
Location: Freiburg i.Br. Deutschland

Post by *CADweazle »

2Rou
You're welcome!
Have look at this editor - offers tree-view for ini-files:
www.pspad.com
was from this recent thread in the German forum:
http://www.ghisler.ch/board/viewtopic.php?t=2365&start=0
Despite of the missing delete function it offers a really well structered overview.

If you make your own program: think of sharing it with us :)!

Greetings,
Cheer up, Karl
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

Would adding a delete button, to my program TC FTP Checker, help?
Of all the planets I've been to, this one is my favorite.
Rou
Junior Member
Junior Member
Posts: 12
Joined: 2003-11-28, 13:52 UTC
Location: Aarhus, Denmark
Contact:

Post by *Rou »

Yes, it would :)

But I might still opt for making one myself, just for the kick. But dont let that deter you.
- Rou
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

Ok, I added a delete button, tell me if this solves your problem.

TC FTP Checker v1.2
Of all the planets I've been to, this one is my favorite.
User avatar
CADweazle
Senior Member
Senior Member
Posts: 297
Joined: 2003-04-03, 09:10 UTC
Location: Freiburg i.Br. Deutschland

Post by *CADweazle »

2Aezay

Great! That´s what I call a fast response!!
I liked your tool even before very much, now it´s close to perfection!!
Only(!) 4 wishes/ideas:
- what about supporting the %commander_path%?
- support for multiple select with SHIFT/CTRL-click.
- second option instead of delete: commenting out ("Disable" or so...)
- create a backup of the old file before deleting/commenting

Would be nice to have :P.

Greetings and thanks again for your fine work!!

P.S.: Last not least: what about skin -support - woahahahahah :lol:
Cheer up, Karl
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

P.S.: Last not least: what about skin -support - woahahahahah
Create a new file TCFTPChk.exe.manifest in the same directory as TCFTPChk.exe. Paste the content:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="TC FTP Checker"
type="win32"
/>
<description>TC FTP Checker.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
User avatar
CADweazle
Senior Member
Senior Member
Posts: 297
Joined: 2003-04-03, 09:10 UTC
Location: Freiburg i.Br. Deutschland

Post by *CADweazle »

2Lefteous

Ey man, ´s anybody told you that it´s not handsome to spoil the jokes of forum-seniors ;)

Great response anyway!!

Greetings,
Cheer up, Karl
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

2Lefteous
You seem to know about manifests, what exactly do they do, and why do I need to make one, I've never really understood that?
Of all the planets I've been to, this one is my favorite.
CoolWater
Power Member
Power Member
Posts: 744
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

2Aezay
If you want to make your app using XP-Styles, then you have to create such a manifest file. Or you can build this manifest file within your app, as resource. You also must call the InitCommonControls function.

Cheers
CoolWater
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

2Aezay
Very handy tool ! Just found it by this thread.

I just found a little bug:
Server named directly by their IP address will be set as unreachable.
#5767 Personal license
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

CoolWater wrote:If you want to make your app using XP-Styles, then you have to create such a manifest file. Or you can build this manifest file within your app, as resource. You also must call the InitCommonControls function.
I think I tried that once, but the Delphi ListView is incompatible with manifests. Well, I could build it in programs without ListViews. If I remember correctly, it's resource #24 right? What effect does editing the name and description properties in the manifet have.

I just switched to the ugly XP theme, there doesn't seems to be any trouble showing any of my programs in the XP look, what gives?
sqa_wizard wrote:I just found a little bug:
Server named directly by their IP address will be set as unreachable.
I can't reproduce it, can you give me an example?
Of all the planets I've been to, this one is my favorite.
CoolWater
Power Member
Power Member
Posts: 744
Joined: 2003-03-27, 16:33 UTC

Post by *CoolWater »

Aezay wrote:If I remember correctly, it's resource #24 right?

right :)
Aezay wrote:What effect does editing the name and description properties in the manifest have.


No effect :P

You delphi listview should work correctly if you call the InitCommonControls function on program start :)

CoolWater
Post Reply