Search found 7 matches

by MvGulik
27 Jun 2012 16:11
Forum: DOS Batch Forum
Topic: Clipping filespec path
Replies: 7
Views: 4773

Re: Clipping filespec path

PS: Question about the "dir /a:-d" use.
Why the "/a:-d" and not just "/a-d" ?
Is "/a:-d" a alternative way for writing "/a /a-d" ?
by MvGulik
27 Jun 2012 15:33
Forum: DOS Batch Forum
Topic: Clipping filespec path
Replies: 7
Views: 4773

Re: Clipping filespec path

Roger. Will move the Dir out of the For command just to be on the save side. The !,& and % limitation is most likely not going to be a problem in this case. But its good to now. Added it below the :: *** Courtesy of m *** line. One minor thing (which was not specified in OP) that I run into was ...
by MvGulik
27 Jun 2012 01:58
Forum: DOS Batch Forum
Topic: Clipping filespec path
Replies: 7
Views: 4773

Re: Clipping filespec path

Could not get the code from Aacini adjusted to get it working for me ... before the second code from foxidrive was posted.
(Did not spend that much time on Aacini's code as it was about bed time for me when I got it.)

foxidrive's code: 6sec on 4000 files. That I can use. :)

Thank you, to both.
by MvGulik
26 Jun 2012 19:05
Forum: DOS Batch Forum
Topic: Clipping filespec path
Replies: 7
Views: 4773

Clipping filespec path

Hi. Back again after a serious lack of DOS practice. Trying to do something in DOS that probably can be done way simpler (in DOS) than what I'm doing now/here. The Target is to get a "Dir /b/s ... > file.log" output file that has some leading part of the paths removed. Which part of the pa...
by MvGulik
09 Jun 2011 09:39
Forum: DOS Batch Forum
Topic: [solved] Merged input & output parameter in function ?
Replies: 4
Views: 5017

Re: [solved] Merged input & output parameter in function ?

The suggested new versions lose significant functionality compared to the original. They don't expand wildcards, nor do they normalize the path into a fully qualified path. They only make sure it doesn't end in \. Correct. Fixed missing 'f'. 1) Send the missing argument error messages to stderr ins...
by MvGulik
08 Jun 2011 11:28
Forum: DOS Batch Forum
Topic: [solved] Merged input & output parameter in function ?
Replies: 4
Views: 5017

Re: Merged input & output parameter in function ?

Yes it did. "Call set ..." was someting that I ever seen or used before. But it also made clear why my attempts failed (after some more experimenting of course). Relative new to using ENABLEDELAYEDEXPANSION ... which I forgot about in my attempts. Ergo: :NormalizeFilespec2 - <var:Input/Out...
by MvGulik
08 Jun 2011 07:45
Forum: DOS Batch Forum
Topic: [solved] Merged input & output parameter in function ?
Replies: 4
Views: 5017

[solved] Merged input & output parameter in function ?

Hi First post ... So big thanks to DosTips site for being there. Live saver when is comes to win/cmd/dos scripting. Wondering about something. Is it possible to use a single var-name for both data-input and -output ? I did see its possible when you use [set /A ..], but that's for numbers. But for st...