Search found 3 matches

by thomson1308
12 May 2016 23:36
Forum: DOS Batch Forum
Topic: Variables and String Connection
Replies: 6
Views: 5326

Re: Variables and String Connection

Okay, thanks again. Thats it...i deleted the Space and it works. Now i have another question: I need a "do-while" for this: REM ID des PeripherieServers eingeben set /p ID=ID eingeben: echo %ID% REM Beschreibung eingeben set /p Description=Beschreibung eingeben: echo %Description% REM Dien...
by thomson1308
12 May 2016 10:08
Forum: DOS Batch Forum
Topic: Variables and String Connection
Replies: 6
Views: 5326

Re: Variables and String Connection

i did it....
thats the soluition:

Code: Select all

SET SERVICENAME="PeripheralsServer-%ID%"
by thomson1308
12 May 2016 09:52
Forum: DOS Batch Forum
Topic: Variables and String Connection
Replies: 6
Views: 5326

Variables and String Connection

Hi,
want to have such an result:
IF6040-PeripheralsServer-02

I have a variable:

Code: Select all

set /p ID =ID eingeben: 
echo %ID%

and another String

Code: Select all

SET SERVICENAME=IF6040-PeripheralsServer-%ID%
echo %SERVICENAME%


My result is:
IF6040-PeripheralsServer-

What did i wrong?

Thanks