1.

Solve : How do you use concatenate in batch file??

Answer»

The user enters in the command line: ADOBE, macromedia, whatever

Is it possible to concatenate the string that is hard code in the batch file with the user input.

i.e. START program.adobe

I would like to start the application, using START command. The word "program" is hard code in my batch file. Now adobe is what the user input.

How do combine the program.adobe as one string.

Any comments is always welcome and appreciated. thanksCode: [Select]set /p run=what do you want to run?
start program.%run%
like that? why do you want to have program before the executable to run anyway?

FBthis works perfectly. thank you.

At work, I USE a program that's able to ACCESS different servers. So I would TYPE serverName.blah.blah.com, the blah.blah.com is always the same and must be entered, when I need to access the servers. Only serverName is different. So me being lazy, I only type in serverName and the blah.blah.com is concatenate into serverName and VOILA!

thanks



Discussion

No Comment Found