Dart Home | PowerTCP Emulation for ActiveX | Custom Development | Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums |
Author | Forum: PowerTCP Emulation / Telnet for ActiveX Topic: counting lines . |
ali ali.a@galnet.dk From: cph, USA Posts: 13 Member Since: 11/06/03 |
posted November 6, 2003 5:55 AM Hi , i'm recieving a list of files back from the server (mostly ls) is there anyway to count and tell how many files are there.the method i'm using right now work but takes a lot of muscle ! any built in method or may be somebody has already tried it in VB6! RGDS, |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted November 6, 2003 8:44 AM Nothing built in. I would just split the string on the CRLF's, then count any lines that start with the permissions as a file. You could play around with the params sent to ls to make it easier to parse. |
ali ali.a@galnet.dk From: cph, USA Posts: 13 Member Since: 11/06/03 |
posted November 6, 2003 9:04 AM tony, thanks for your answer i was doing the same but listing was a really big anyhow used wc -l to get the count since the servers are always more powerfull than clients so why not do it there :) thanks again :) cheers! |
Reply | PowerTCP Emulation / Telnet for ActiveX Topics | Forums |
This site is powered by
![]() |