kvarnerexpress
Feb 17 2005, 09:18 PM
| | Anyone know of a good way to sort a list of files if I give a path like C:\myDirectory\*.cmd that will return a sorted list of all cmd files in the directory? I don't need in a CFile object or anything like that, just a list of strings. Even all files in the directory would be fine, I can filter out non-cmd files after that.
Thanks in advance. |
Reply
kristofer.hoch
Feb 17 2005, 09:50 PM
QUOTE(kvarnerexpress @ Feb 17 2005, 04:18 PM) Anyone know of a good way to sort a list of files if I give a path like C:\myDirectory\*.cmd that will return a sorted list of all cmd files in the directory? I don't need in a CFile object or anything like that, just a list of strings. Even all files in the directory would be fine, I can filter out non-cmd files after that. Thanks in advance. You can't do what you are asking unless you write a program to do it. You can use Perl pretty easily for something of this nature. You can also use C/C++ (CFile). Do you have an idea of how you want to do this (write a program, run a windows command)? Thanks, ----------------- Kristofer Hoch "TIMTOWTDI (tim-toe-dee): There is more than one way to do it -- Perl Motto"
Reply
kristofer.hoch
Feb 17 2005, 09:54 PM
QUOTE(kristofer.hoch @ Feb 17 2005, 04:50 PM) You can't do what you are asking unless you write a program to do it. You can use Perl pretty easily for something of this nature. You can also use C/C++ (CFile). Do you have an idea of how you want to do this (write a program, run a windows command)? Thanks, ----------------- Kristofer Hoch "TIMTOWTDI (tim-toe-dee): There is more than one way to do it -- Perl Motto" Hi there, Apparently you want to use C/C++ being that you posted this in the C/C++ Programming forum! DOH! I should have looked first, but I am new at this bb stuff. I have done something like this before, but it was several years ago. I did use the Win32 API, so I think I can reproduce it. It was done in C, not C++ so it should work with either compiler. Give me a bit of time to try to remember. Thanks ----------------- Kristofer Hoch "int main(int argc, char *argv[]){ ... }"
Reply
Similar Topics
Keywords : sorting, directory, contents
- Unable To Replace .png File In Directory
Can't even delete it using Cpanel (7)
Directory Script
(1) Hello folks, i am thinking to create a new directory.So just want to know any good script
available?or anyone personally coded it? or any of the trap member have actually created directory?
i would like to view it. and ask few doubts that i have. please do reply to my query thanks in
advance people.....
Directory Restricted?
I can't edit one of my site's directories (7) My website is split into two directories: "site", which is my main site's content, and "forum",
which explains itself. The "site" directory is mostly filled with Joomla! files due to my
website using the Joomla! CMS. Previously, I was able to upload templates and extensions to
Joomla! without fail. However, since today whenever I've done either of these I just get
"failed" messages. Unable to source it to a problem with Joomla, I tried to access the directories
using FTP. I was able to access and rename all my directories using FTP, but whenever I t....
How To Display Images Of A Directory
(4) I am trying to do a simple thing. I want to display all the images of a directory on a single page
with the checkbox next to each image, so that i can select multi images and i can delete selected
images. Following few lines of code display the images of a directory.. i need help to put the
check boxes with each image. and I dont understand how can i select multi images with check box and
then delete them. I hope someone can help. thanks. CODE <?php $path = "./";
$dir_handle = @opendir($path) or die("Unable to open folde....
Php Ftp Upload Form
Adding User Directory to PHP Upload Form - Help (1) Alright I am trying to have a PHP FTP Upload Form that allows the user to create the directory
folder for where they want to upload there files to. example: Main Directory: vainsoft.com There
directory: vainsoft.com/modeling or vainsoft.com/photography But I dont want them to be able to
upload things into the main directory, only sub-directories, is that possible with this coding that
I have: //uses $_FILES global array //see manual for older PHP version info //This
function will be used to get the extension from the filename function get_extension($fi....
Where Do I Upload My Ftp Files? [resolved]
As in, which directory? (1) I recently got approved for hosting. I have an account right now, but I don't know which
directory to post my FTP stuff in. (I don't know if this is in support or not; the search
results didn't return anything.) I remember with my last host that had CPanel that you had to
upload it into the "public_html" folder. So I do that, or do I just upload it into the root
directory? Thanks in advance! (EDIT: Oh, never mind, it is /public_html.)....
Web's People Directory
(0) QUOTE While we've been working on bigsight for over a year now, it is only recently that
we've picked a final strategy, building the world's largest people directory. The company
started with an idea of building a targeted job board for the 24-31 y/o knowledge worker set. It
took only a few months for us to realize that the magic would be in first building a public
directory of those individuals. We thus went through a few iterations through Spring of '07
until, at the start of the summer, I decided that I wanted to do this full time. We closed an....
Tab Contents, How To Make Them
need assistance on how to make and modify tab contents (5) I found this cool script on dynamic drive that lets you create tab contents, The only problem I have
is it dosent give enough discriptive details on how it acutally works it just does.
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm It uses a cobination of javascript,
html, and css, while you can look at the source code of each language and try and figure out how it
all relates to one another I think it would be much easier if someone who knows tells the rest of us
how its built and be modified. This is personally my first time working with one so I dont ....
Pagerank Update Conclusions
Web Directory Owners special (1) Hi Guys, I have made a blog post relating the recent Google PageRank Update & some conclusions
that can be drawn from it. Small Excerpt. QUOTE Now here comes the pinch with this Google
Update when established directories (dropped by PR) and be compared with the new directories awarded
higher PR. I really don’t think PR now is the metric for comparison right now & will be influenced
with many other factors. Here are some of the conclusions that can be drawn from this PageRank
Update 1. Google is not against directories (I know that this will make a lot of people....
Google Sites And Services Directory
(0) QUOTE Google Search - http://www.google.com/ Google Image Search -
http://www.google.com/imghp Google Blog Search - http://blogsearch.google.com/ Google
Book Search - http://s.google.com/ Google Patent Search - http://www.google.com/patents
Google Product Search - http://www.google.com/products Google Experimental Search -
http://www.google.com/experimental/ Google Microsoft Search - http://www.google.com/microsoft
Google Bsd Search - http:www.google.com/bsd Google Linux Search -
http://www.google.com/linux ....
Trap17 Site Deletions
Does Trap17 Still Delete All Site Contents When Accounts Lack Credits? (3) Sorry if there's already a topic for this, I tried looking and couldn't find any...
Anyway, does Trap17 still delete all site content for accounts that fall behind in hosting credits?
I lost my site because of being inactive for a few months a year or so ago and have been hesitant to
get back into this when losing all your work can happen at any point. Is that still how the system
works? Joshua....
Unofficial Trap17 Hosted Members Directory
(13) This is the Trap17 edition of the Hosted Members Directory. A script initially written by me for the
Astahost forums. The script has gone through many a changes and is currently in version 4 which
includes the following features:- > Listing of hosted members. > Listing of the websites of the
hosted members. > Validation of the websites (whether the site is suspended, working or not not
working, etc) > Save/Load result to/from database. > Multithreaded for faster operation. > Status
messages, images and progress bar to keep you informed of the process. Link to the Scrip....
My Directory C'mon And Join
Do you want to join it? (0) I have started a directory site that I welcome all members of trap17 to join. The link to it is
http://www.gta-source.net/directory i started this as a network thing and now I welcome everybody
to join it, it'll help better promote your site, and your site gets ranked higher when it is
linked to other sites!! If you want to be apart of this, then post your links with a
description and I'll add it, then please post a link back to gta-source.net I dont want any
links to my directory, just to my site which i already said was gta-source.net. So come o....
Reading Files From Directory To Array, And Using $_get To Get Them
Simple way to manage lot's of files (2) Some user posted a similar problem i had when i tried to figure out how to update content on my
website in less work as possible. This is just part of the "big" plan i have for my site but it can
be helpfull to you guys if you like FlatFile. I hope that mod's don't mind me posting the
same code here and on their forums, couse if they do i'll delete it from their forums
/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> So
here's the situation. Let's say you have a folder called 'myfilesdirectory' on your
s....
Imagemagick Convert Directory
(0) I have some forums that use a word code during registration and GD isn't showing up right so I
was thinking about changing the system for ImageMagick and it says on the ComputingHost homepage
that ImageMagick is supported so I was just wondering what the convert directory is for it. Thank
You ....
Help Needed With Directory/file Listing Code Infinite Loop
Made an infinite loop but why is this so? (5) Hi all ive got a small and simple (for the moment atleast /unsure.gif"
style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> )file and directory
listing script in php as follows CODE $dir = "."; $num = 0; $file =
scandir($dir); while($file = scandir($dir)){ echo
$file[$num]; echo "<BR>"; $num = $num + 1;
}; the concept is simple enough, the directory to start with is the current one, so scan this
directory and wh....
Sorting By The Day Of The Week
An overview of a discussion. (4) Yesterday BuffaloHelp asked if I knew of a function or script that could sort filenames by the day
of the week. He has files with names like so: Thursday567.htm Wednesday345.htm Monday123.htm
Friday789.htm Sunday234.htm If he reads the filenames from a directory and sorts the only by name
then the will end up in this order: Friday789.htm Monday123.htm Sunday234.htm Thursday567.htm
Wednesday345.htm The required result should be like so: Sunday234.htm Monday123.htm
Wednesday345.htm Thursday567.htm Friday789.htm There isn't just some nice simple function or
me....
Technorati -- A Blog Directory
The "Google" for blogs! (1) If you feel overwhelmed by the world of blogs, or if you just want to find out what people are
talking about, then this is the site for you. There are about 75000 new blogs created every day, and
about 1.2million posts every hour. This site tracks about 50million blogs, so you have it all at
your fingertips in one convenient location.....
Deep Linked Directory?
(0) I've heard about this directory that doesn't want your home pages, but your content pages
submitted to it. You can submit as many content pages as you like from your site, as long as they
are relevant to the categoy you are submitting to. Blog articles as well! The webmaster of the
site said: "Have fun, and submit now before word gets out and we are swamped. I anounced this on my
blog a short while ago this afternoon, and so far we have accepted 112 sites."
http://www.deeplylinked.com So what'd you all think? It sounds like a good idea but I think ....
Display Random File In A Directory
how to display a random file from a set directory. (9) hi, could someone please help me with this? I have some files in a directory and i want to know how
i can randomly display link/s to one or more of the files in my directory for download. But it must
not at any time display index.php which is also in the directory with the downloads. Thanks in
advance for any help given /unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0"
alt="unsure.gif" />....
Changin My Phpnuke Directory...please Help
(13) ok i wus fantastico to install my nuke...it asked me to give it a name for its directory so ive put
down "nuke" so to get to my site ud have to go to www.boaw.trap17.com/"nuke" but now i want to
change nuke into something else more related to the site...i was wondering if any1 can tell me the
best way to do that...thanks....
I Need Help To Use Htaccess To Allow Only My Server To See A Directory
(4) Hi everyone Ive finally got a bit of an opportunity to do some php coding for an organisation which
shouldnt be too hard. But i want to have some php files which will be used as includes in another
php script but for added protection i dont want these php files to be visible by the public. I know
i can use htaccess to easilly hide these files but what im worried about is will the head script be
able to see the includes it needs if the htaccess file is hiding the entire directory? Obviously
its no good if not even the local server can see its own scripts and i havent us....
How To Modify .htaccess To Protect A Directory?
(3) hi i have a free webhost included cpanel but it's cpanel is not full and i can not protect my
dir through it. then i think i should use .htaccess . now i dont how i must creat .htaccess files or
hoy to using it /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />
/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> can any one help me
pl....
Displaying Files Of A Directory
(2) I want to display the contents of a directory.. i have the following code.. It gives the output in
one column only... like file1 file2 file3 file4 . . . . . Since there are lot of files so this
column gets very long..i want to display the x number of files in each column.. like if there are 22
files.. then file 1 file 11 file 21 file 2 . file 22 file 3 .. . . . file 10
file 20 This was just an example..I know it can be done by using but i dont know how to do it
with loop. Please help me. QUOTE $dir = './'; $handle =....
Do You Have A Directory Website?
(0) HI, I'm looking for a few directories that allow free non-recip submissions so i can submit my
8 sites to them. Do you have a directory? Can you recommend one? I'd rather submit to a newer
dircetory and get my links up qucikly than wait 8 months to get a link on a more esteemed directory.
Thanks, Andy....
Review This Automotive Directory
www.autosmoto.com (5) Please tell your opinions about my site http://autosmoto.com .Any suggestion is appreciated.....
How To Make Money From A Directory
(3) Hi guys, I have a web directory and I would love to hear some suggestions on how to obtain a steady
revenue from the directory. I'm basically open to any suggestions.....
A Telephone Directory Source Code In C
(2) Well i had made this project some years before. It is a telephone directory which has a very good
User Interface operatable with scroll key. This code can be usefull in learning about file handling
and User Interface. CODE #include <stdio.h> #include <box.h> #include
<conio.h> #include <dos.h> #include <stdlib.h> #include <bios.h>
#include <graphics.h> FILE *fp; addnew2(char [],char []);
prnd(); deleteit(); info(); pl(); checkcmd();
showall(....
How To Sort Files Of A Directory using Php
(11) The following code displays the files of folder...but they are displaced by the order of adding... i
want to sord the files / folders alphabetically and sord by accending order and by decending
order.. can some one help me. $path = ""; $dir_handle = @opendir($path) or
die("Unable to open $path"); echo "Directory Listing of $path "; while($file =
readdir($dir_handle)) { if(is_dir($file)) { continue; } else
if($file != '.' && $file != '..') { echo " $fi....
Getting List Of Directories And Files Using Php
PHP Function for Directory and File List (6) is there a php function that lists the content of some folder.... example: /New folder new.txt
left.gif download.zip dc.exe ....so is there..? /rolleyes.gif' border='0'
style='vertical-align:middle' alt='rolleyes.gif' /> ....
Looking for sorting, directory, contents
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for sorting, directory, contents
*MORE FROM TRAP17.COM*
|
advertisement
|
|