I felt it was better to ask this separately rather than expect an answer from my comment on my previous post.
I already have variables set for the directory number %jobn%
which is unique is there a way I can search for the unknown element to add to another variable, I know via the command line I can run Dir D09854*
and I will get a single report with the full name, can this be collected somehow and add to a named variable?
S:\SWDA\HBOS>dir d09854*
Volume in drive S is Images
Volume Serial Number is FE8F-38FE
Directory of S:\SWDA\HBOS
18/02/2013 10:29 <DIR> D09854_Parent Test
I want to add the elements after "_"
to a variable %DirDesc%
so I can create the full path by combining %jobn%%DirDesc%
to get "D09854_Parent Test"