set /a

W

winter

Hey all,

Can someone remind me how to use set /a to chomp (in or out) the last
X chars from a var?


thx
 
W

winter

I worked it out like 10mins after posting....

set var2=%var1:~0,-4%

I forgot to set my exclusion's for AV, and all my toys have .vir - hence the above.

thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top