| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: File name expansion |
-=> On 12 Mar 96 07:24:02 Frank Adam articulated to John Gardeniers <=-
JG> I have a need for an algorithm or a bit of code which will
JG> accept file names, including wildcards, using exactly the same rules as
JG> the DOS copy command. The output must be a valid path/file name.
Hello Frank,
FA> I could ask, why in god's name you don't use system(copy
FA> ), but i won't:)
The answer is that my compiler has nothing like it, although I have
written a routine which probably does the same thing. This is what I'm
currently using to tell DOS to do the copying. The reason I need (want)
another way of doing the copy is that I want to incorporate it into my
shell/file manager with a graphic display, much like Norton Commander. I
would also like to have full control of the copying, as this could be
easily turned into a file mover, converter or other type of manipulator.
FA> #include /* before i get flamed i know it's non ISO */
No sweat, the shareware compiler I use (PCC) doesn't even know
about ANSII, let alone ISO. Besides, ISO has no business messing about
with programing languages.
I've made a couple of adjustments to your code to make it
acceptable to PCC. What I now have is a routine which fully expands the
source filename but won't (yet) do the same for the destination filename.
The problem here is with wildcards in the destination. At least I now have
a good start and will get back to it as soon as I've finished with this
mail. Thanks a lot.
John
... Veni, vidi, velcro -- I came, I saw, I stuck around
---
* Origin: Melbourne PC User Group +61-3-9699-6788 (3:632/309)SEEN-BY: 50/99 78/0 620/243 623/630 632/0 107 271 304 309 328 348 360 393 525 SEEN-BY: 632/530 552 998 999 1000 633/371 634/384 388 635/301 502 503 544 SEEN-BY: 637/103 639/252 670/301 711/401 409 410 413 430 510 808 809 932 934 SEEN-BY: 712/515 713/888 714/906 800/1 7877/2809 @PATH: 632/309 998 635/503 50/99 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.