Hi!
I've got a problem with merging two % data fields.
For example:
md f:\testscript\%label_%
xcopy d:\*.* /s /e f:\testscript\%label_%
%label_% is the name of the current DVD in the player.
However, I'm trying to add the %Random% parameter like:
md f:\testscript\%label_%+%random%
xcopy d:\*.* /s /e f:\testscript\%label_% + %random%
So the result would be that it creates for example a dir called alien28361...
I've tried a few solutions with , " ' but I can't for my life remember how to do it
Anybody that knows how?
Merging two % data fields into a single one?
Moderator: DosItHelp
Re: Merging two % data fields into a single one?
This may help you:
Sidenote:
Please use code-tags. Click the "Code button" or manually add the BBCode code-tags for source code:
[code]source[/code]
Examplary result:
penpen
Code: Select all
set "label_random=%label_%%random%"
md f:\testscript\%label_random%
xcopy d:\*.* /s /e f:\testscript\%label_random%
Sidenote:
Please use code-tags. Click the "Code button" or manually add the BBCode code-tags for source code:
[code]source[/code]
Examplary result:
Code: Select all
source
penpen