How to change file path name for printing

March 24, 2010 at 15:37:21
Specs: XP
I have C:\Documents and settings\test\test2\test.txt stored as a variable how can i change this to drop the C:\Document and settings but still print the rest.

Thankyou


See More: How to change file path name for printing

Report •


#1
March 24, 2010 at 16:46:38
@echo off & setLocal EnableDELAYedeXpansion

set var=C:\Documents and settings\test\test2\test.txt
echo var is !var!
set var=!var:C:\Documents and settings=!
echo now var is !var!


=====================================
Helping others achieve escape felicity

M2


Report •
Related Solutions


Ask Question