ZTree.com  | ZEN  | About...  

 Index   Back

[Q] Should ZTree double %s in filenames saved to BATs?   [Q]

By: Liviu       
Date: Sep 05,2006 at 12:27
In Response to: [Q] How to avoid that CMD.EXE replaces %2 in file name? (Juergen Hestermann)

> But if you use Ctrl+Batch to create a file with the file name then it is
> correct which proves that CMD.EXE does the conversion and not Ztree.

I don't see the difference here. Trying it with a couple of files...

  READ%20ME
  READ%20ME TOO

...Ctrl-Batch saves them as...

  READ%20ME
  "READ%20ME TOO"

...and so does F9 if I check the temp ZTW_MENU.BAT.

Problem, I think, is that each CMD invocation loses one level of %s. If ZTree saved the filenames anticipating this, and doubled them in advance like...

  READ%%20ME
  "READ%%20ME TOO"

...then the BATs would work as expected.

Haven't really tested this theory all the way through, so feel free and shoot it down ;-)

Cheers,
Liviu

605 views      
Thread locked
 

Messages in this Thread

 
96,637 Postings in 12,231 Threads, 350 registered users, 54 users online (0 registered, 54 guests)
Index | Admin contact |   Forum Time: Mar 28, 2024 - 8:30 am UTC  |  Hits:62,360,016  (12,413 Today )
RSS Feed