Milleniumlegend
IS-IT--Management
- Dec 16, 2003
- 135
I have a Variable that I would like to append with dynamic values.
I am trying the following
There is another folder under SRCSHORTCUTS called t1 or t2 or t3 etc. depending on the input we get from the user say from 1 to 5 or p or u.
So I was trying something like
the above String append gives me an error. Could someone please let me know how can I achieve this.
I am trying the following
Code:
SET SRCSHORTCUTS="F:\BATCH\shortcuts\"
SET DESTSHORTCUTS="F:\Temp\shortcuts"
XCOPY %SRCSHORTCUTS% %DESTSHORTCUTS%
There is another folder under SRCSHORTCUTS called t1 or t2 or t3 etc. depending on the input we get from the user say from 1 to 5 or p or u.
So I was trying something like
Code:
%input% (could be 1 or 2 or 3 or 4 or 5 or p or u)
XCOPY %SRCSHORTCUTS%t%input% %DESTSHORTCUTS%
the above String append gives me an error. Could someone please let me know how can I achieve this.