Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
COMMAND$ and wildcards on files
#15
Sorry for appearing to have bailed out here Cool 

The parsing of the wildcards was an unexpected surprise to me.  In fact, it should not be a problem, I did code a loop over the COMMAND$ arguments.  Thing is, if I run the command

stamp.exe *.*

it shows all files and folders, but I cannot see what files and folders are. Unless I start testing with _FILEEXISTS etc.
The folders I need to process separately (and recursive) which I was trying to avoid by a smart command.  Only if the -R flag is specified. I cannot smart pass the -r flag to the QB64 command$ input.
As I want to read seconds of the files's date stamp I finally resorted to an external ls.exe tool. The plan was to feed the ls tool with the proper arguments and have a proper list in one go, and then I needed the asterisk to be in place.
I did a lot of testing, but realize that I have to retest and rethink of the programming plan. Yeah I messed up  Confused 
The new tests will find the best way, either command$ or the smart code of mdijkens (dank!).

Thanks for all ideas and thinking, really appreciated.
Reply


Messages In This Thread
COMMAND$ and wildcards on files - by zaadstra - 12-24-2022, 05:12 PM
RE: COMMAND$ and wildcards on files - by SMcNeill - 12-24-2022, 07:35 PM
RE: COMMAND$ and wildcards on files - by zaadstra - 12-25-2022, 12:33 AM
RE: COMMAND$ and wildcards on files - by SMcNeill - 12-25-2022, 12:48 AM
RE: COMMAND$ and wildcards on files - by mdijkens - 12-25-2022, 08:10 AM
RE: COMMAND$ and wildcards on files - by zaadstra - 12-25-2022, 04:23 PM
RE: COMMAND$ and wildcards on files - by zaadstra - 12-29-2022, 05:58 PM
RE: COMMAND$ and wildcards on files - by mdijkens - 12-30-2022, 01:01 PM
RE: COMMAND$ and wildcards on files - by mdijkens - 12-30-2022, 06:11 PM
RE: COMMAND$ and wildcards on files - by zaadstra - 01-17-2023, 10:12 PM
RE: COMMAND$ and wildcards on files - by zaadstra - 01-19-2023, 05:25 PM
RE: COMMAND$ and wildcards on files - by mdijkens - 01-19-2023, 05:59 PM
RE: COMMAND$ and wildcards on files - by zaadstra - 01-19-2023, 07:31 PM



Users browsing this thread: 1 Guest(s)