Dr Skip wrote: > Quoting just the variable, as in "%1" in the bat file passes > the quotes to tar, and no quotes fails on dirs with spaces such as > Program Files. Blasted Microsoft!! This is not the shell's fault, but rather the fault of the program that can't handle command line arguments quoted. The shell passes quotes from the command line to the target program just like it should. A shell that thinks it's clever about what you meant on the command line would only cause a lot more trouble in other areas. I'd rather have a dumb shell than one that's too clever by a half. Of course this particular case would go unnoticed if spaces weren't allowed in file system pathnames, but that's a different discussion. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist