Click to See Complete Forum and Search --> : problem writing a dos batch file


jayadeep
March 6th, 2006, 10:50 PM
hi

i have a problem with writing a dos batch file


heres the problem

i want to take the input from the user and store store it in a variable i had done that the variable which contains the information is

%INPUT%

now i have a file where i have placeholder for this varible

eg:
filename="%dir%\xuz.dat"

i want to replace this placeholder with the value in the variable as a string how can i do it do i need use some commandline editor or tool for finding and replacing the placeholder with the value of the variable..
remember that i want to execute it at the command line any ideas....

i dont know whether i can post this here ... i did not find any appropriate section.....
any way can any body help me please.

PeejAvery
March 7th, 2006, 05:50 PM
Yes, this is the correct forum in which to post.

I am a little confused as to how you want to change this "placeholder." Do you want to change it in the middle of running this script? Can you explain a little more clearly.

jayadeep
March 9th, 2006, 03:32 AM
i want to %dir% in the file with the input of the user