ZTree.com  | ZEN  | About...  

 Index   Back

C command line processing   [Zeta]

By: Ben Kent       
Date: May 14,2020 at 16:36
In Response to: [Bug] v2.4.195 Now Available! (Ryan)

> ztw m: works
> ztw m:\ works
> ztw "m:" works
> ztw "m:\" works
>
> ztw m: "*" works
> ztw m:\ "*" works
> ztw "m:" "*" works
> ztw "m:\" "*" doesnt work.
>
> what could be the problem?

Ryan

Why
The library that ZTree uses to process the command line.
See
Parsing C++ command-Line arguments
https://docs.microsoft.com/en-us/cpp/cpp...nction-command-line-args?view=vs-2019

Cause
\" is an escaped "

Your options
ztw "m:\\" "*"
ztw m:\ "*"

Your examples do not need to be quoted, I guess you are using defensive programming techniques to handle cases that do need quoting.

A comment probably shroud be added to ZTW.HLP, 3.13 Command-Line Options, [paths]:


Ben

73 views      
 

Messages in this Thread

 
94,973 Postings in 11,969 Threads, 349 registered users, 23 users online (2 registered, 21 guests)
Index | Admin contact |   Forum Time: May 26, 2020 - 12:24 am EDT  |  Hits:31,231,478  (195 Today )
RSS Feed