can anyone point me in right direction to SET/S definition

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
timbertuck
Posts: 76
Joined: 21 Dec 2011 14:21

can anyone point me in right direction to SET/S definition

#1 Post by timbertuck » 08 Oct 2012 17:18

hi

trying to find the unofficial documentation to SET/S, found at this post: http://www.dostips.com/forum/viewtopic.php?t=2704

I just ran across this and wanted to make sure that i understood it incase i was ever asked on Jeopardy :-)

trying to search any forum (or even google) for SET/S amounts to a hill of beans. I tried various other terms to no avail, so that is why i posted the link above.

any help is greatly appreciated.

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: can anyone point me in right direction to SET/S definiti

#2 Post by Squashman » 08 Oct 2012 17:44

LOL. This is the only site you will find documentation on the SET/S macro.


Aacini
Expert
Posts: 1932
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: can anyone point me in right direction to SET/S definiti

#4 Post by Aacini » 27 Oct 2012 02:31

SET/S is a macro with parameters. In this topic there is an extensive description of what "macros" are, and in this topic there is an additional description about how to write macros with parameters. If you want to understand how SET/S was written, you need to review those topics.

That said, SET/S macro just identify each particular case of the given parameters (replacement substring is larger/equal/shorter than original part, replaced part is at beginning/middle/end of original string, etc.) and perform the suitable process for each case. Each individual process is not too much complicated, but somewhat laborious because the involved details. If you have specific questions about how a particular part of SET/S macro works, you may post a question here.

Antonio

Post Reply