Search found 3 matches

by prasanna2166
23 Nov 2016 09:07
Forum: DOS Batch Forum
Topic: Overwrite batch variable
Replies: 4
Views: 5783

Re: Overwrite batch variable

Squahsman, In a nutshell, i am trying to fetch the values for the input given in the script. Say for example, if i give App and Web as input in script, it should look for App and Web in property file and get the second part. Property file: App, App1, App2 Web, Web1, Web2 Expected result: App=App1,Ap...
by prasanna2166
23 Nov 2016 08:59
Forum: DOS Batch Forum
Topic: Overwrite batch variable
Replies: 4
Views: 5783

Re: Overwrite batch variable

Squashman, Yes, I am trying to get a dynamic variable name. Let me brief it. I have a property file like below. Filename: property_check.txt App, App1, App2 Web, Web1, Web2 Host, Host1, Host2 path, path1, path2 In scripting path, based on input given i need to get the values corresponding to input. ...
by prasanna2166
23 Nov 2016 08:16
Forum: DOS Batch Forum
Topic: Overwrite batch variable
Replies: 4
Views: 5783

Overwrite batch variable

Hi, Need help in overwriting a variable value inside a loop. Getting same value all the time for below loop. I'm trying to get the value of App and Web from txt document. Below is the sample. @echo on setlocal EnableDelayedExpansion set package_check=App,Web for %%b in (%package_check%) do ( for /f ...