View Single Post
  #19  
Old June 26th, 2007, 04:16 AM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Catgod pretender viewer now for Windows!

Ok, it's looking to me like Windohs params just won't mix quotes with wildcards...

I tried hard-coding:
"C:\Program Files\dominions3\savedgames\newlords\*.2h"

and the file system method doesn't like that parameter in Windohs. Which means it's not necessarily failing just at the command-line level - it looks to like it's both, which is lame.

That is, Windohs does the wildcard expansion on the parameter passing, but not if it's in quotes. It doesn't do it at the file-open level after getting the parameter, which basically means, as far as my sleepy mind can see at the moment, that it's not going to help. Either the calling (Arralen's) program would need to do it, or I'd need to write such a parser myself, including a file system crawler. It would be nice if an escape character could stand in for the space as the parameter is being passed in, but I haven't seen that work from the command-line so far.

Grumble. Time for sleep.
Reply With Quote