[Quote]Changing variable contents with set command in Windows XP

Here’s two articles related with the topic – How to extract a part of a variable, and How to substitute / replace a part of it, by using ‘set’ command in Windows XP command prompt.

(will appear in new window)

Copyright SS64.com 1999-2012

Variables: extract part of a variable (substring)

It is possible to retrieve specific characters from a string variable.

Variable Edit/Replace

Use the syntax below to edit and replace the characters assigned to a string variable.

This Edit/Replace syntax can be used anywhere that you would use the %variable% such as ECHOing the variable to screen or setting one variable = another

Advertisements
  1. 留下评论

Log in or fill out contact info to leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: