text substution function

December 15, 2010 at 10:38:59
Specs: Windows XP
scrip substution
set _in=\in\
set _out=\out\

set _from_path_=Z:\time\in\nellen\fm.pdf
set _to_path_=%_from_path_:%_from%=%to%%

move %_from_path_% %_to_path_%

how to get the val in set to work in side of the %:%here%=%here%%


See More: text substution function

Report •


#1
December 15, 2010 at 14:52:48
Can you explain your question please?

"in set to work in side of the %:%here%=%here%%"

Happy is ONE who says I am an OttoMAN.


Report •

#2
December 17, 2010 at 07:33:41
scrip substution
set _in=\in\
set _out=\out\

set _from_path_=Z:\time\in\nellen\fm.pdf
set _to_path_=%_from_path_:%_from%=%to%%

move %_from_path_% %_to_path_%

how to get the val in set to work in side of the %path:%in%=%out%%


Report •

#3
December 17, 2010 at 17:12:51

set _in=\in\
set _out=\out\

set _from_path_=Z:\time\in\nellen\fm.pdf
call set _to_path_=%%_from_path_:%_in%=%_out%%%

move %_from_path_% %_to_path_%
pause

or

SetLocal EnableDelayedExpansion
set _in=\in\
set _out=\out\

set _from_path_=Z:\time\in\nellen\fm.pdf
set _to_path_=!_from_path_:%_in%=%_out%!

move %_from_path_% %_to_path_%


Report •

Related Solutions


Ask Question