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:

Post by *Rou »

Aezay wrote:Ok, I added a delete button, tell me if this solves your problem.
It does indeed, thanks!
- Rou
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Server named directly by their IP address will be set as unreachable.

I can't reproduce it, can you give me an example?
Sorry, the effect has been gone.
I had duplicate entries : 1st by name, 2nd by IP address
1st went green, 2nd red. Now both are green. I just renamed the title ...
I will continue my investigation and let you know if I can reproduce it for sure.

Another one : After successful scan I pressed Refresh and next Scan.
This will duplicate the very first entry to the end.
Scanning ignores the very first entry.
Deleting the last entry (the scanned duplicate) results in an Access Violation message ...
#5767 Personal license
Rou
Junior Member
Junior Member
Posts: 12
Joined: 2003-11-28, 13:52 UTC
Location: Aarhus, Denmark
Contact:

Post by *Rou »

AEZay:

I found a problem though, that essentially invalidates your tool on the same basis as TC itself. Its horribly slow, when working on large (500+ entries) files.

Its seems your work directly on the file, instead of an in-memory representation. This would explain it, at least.

I have begun work on my own application, where I'll keep this in mind.

Thanks for trying though :)
- Rou
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

I'd rather say it's because of the slowness of the network rather than a few KB file, even if it were like you're saying.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
CADweazle
Senior Member
Senior Member
Posts: 297
Joined: 2003-04-03, 09:10 UTC
Location: Freiburg i.Br. Deutschland

Post by *CADweazle »

2Hacker

Sorry Hacker, you´re not right!
At the first glance I thought it was the fault of Rou, but TCFTPchk is in fact really slow!
Just try to delete an entry of a bigger list (mine is about 80 sites long): it takes really long, until the list-view is refreshed.
Suppose it was a quick-shot, to satisfy the "delete"-wishes.

As I asked in my wishlist, a multiple select would be very useful, and the handling in memory should really increase the speed a lot!!!

But with my stupid skin-joke it seems, that I´ve stole away AEZay attention from the real "problems" ;).

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 »

2CoolWater
No, a program with a ListView still gives me access violence a lot of times, even if I call InitCommonControls as the 1st line in the program.

2sqa_wizard
Bug fixed, thanks for reporting it.

About the Slowness
The thing is that the wcx_ftp.ini has its entries numbered. If 1 entry is deleted all entries after that must be rewritten because they get a new number, that's whats make it slow.

Future Idea
I think the best thing would be to import the entries from wcx_ftp.ini into a dynamic array and work with it there. Then when you're done, you update the wcx_ftp.ini with the entries in the array. How does this sound?

TC FTP Checker 1.3 beta
Nothing dynamic yet, it works the same way. I just fixed the bug found by sqa_wizard. Added some more INI properties. Also, double clicking on an entry, will now check that entry only. Get it here.
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 »

Aezay:

Thats exactly what I meant.
I too would put the entire list in an array, perhaps use a struct or something for each entry, then write the file when all editing is done.
This ofcourse opens up more problems, like Loss of Data in case of the application crashing or similar, but I could live with the rather remote possibility.
- 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 »

2Aezay

Keep on!!
Ever thought of designing your tool as a Files-system-plugin?

Would be a great addition for TC :D!!

Or you/we convince him to add a check-button to invoke your code from the FTP-Server-connect-Dialogue??

2ghisler
Would/could you add this functionality to the TC-core??

Greetings,
Cheer up, Karl
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Rou, Aezay,
I too would put the entire list in an array, perhaps use a struct or something for each entry
Hmm, IIRC the Checker is programmed in Delphi, so why not simply use TStringList? Easy and fast...

My 2 Eurocents.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

I too would put the entire list in an array, perhaps use a struct or something for each entry
Well, beside of better performance it would not directly delete the entry at INI, but give you the possibility to cancel your deletion.
This makes it less dangerous ...
#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 »

2CADweazle
I don't think a file system plugin would give me the same flexibility as a 3rd part app would.

2Hacker
Since I have to keep track of 2 strings (name and host) a TStringList doesn't help here.
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
Maybe, but have a look at fabiochellys "versions-plugin"
he scans a given list (but of course doesn't support delete in the list... I don't know whether it is a limitation from TC-plugin-interface).

Anyway how you solve it, I'll be happy :) (hope so ;)).

Greetings,
Cheer up, Karl
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Aezay,
Since I have to keep track of 2 strings (name and host) a TStringList doesn't help here.
Well, you can create two TStringLists and simply perform operations on both. You can first LoadFromFile, then use some custom function to remove unneeded stuff and copy the host names to the other TStringList, then work on both and upon saving merge them again and SaveToFile.
Or you could use one TStringList with the format Name=Value if that is easier.

Of course, it's up to you, I am sure you'll find a good soluton. :)

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

Post by *Rou »

I finally got around to coding my own small editor..

Its not actually complete, since I would like to include Add and Edit functions. I would need to know the TC password encryption though, to accomplish this, and I doubt Christian want to disclose those.
Snatching them by reverse engineering is probably against the license agreement as well :)

Anyways, if anybody want to have a look, its available at:

http://www.rou.dk/files/tcftpadmin/release.zip

It requires the .Net framework v1.1 to run.
- Rou
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Some notes:
- Is the installation necessary? I hate setups, I just prefer standalone applications which I can copy anywhere I want and then quickly delete if I don't neeed them any more.
- It should find the wcx_ftp file itself.
- It should remember the path to the wcx_ftp file.
- Data / Global settings doesn't show anything :-(
- After reloading the .ini file Default and Firewall settings show multiple data
- "Add" doesn't work
- Delete works... without any warning.
- I can't edit the entries.
- Label "Default entry..." doesn't show whole long items
.....

As I know there are a few TC password recovery tools already but I don't know if they have been done with Christian's agreement.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Post Reply