Re: Multiple variables within dos substring extraction


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

Posted by Valerie on June 24, 2011 at 04:33:11:

In Reply to: Multiple variables within dos substring extraction posted by 911940043113 on June 23, 2011 at 12:44:21:

@echo off
cls
setlocal enabledelayedexpansion


set variable=12345
set y=3
set z=1
set X=!variable:~%y%,-%z%!

echo X = %X%




Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]