|
Answer» Hi,
I am a NEWBIE but i do know a little about DOS BUT i am trying to create a script to add 2 letter to a batch FILE when i execute it... for example:
i need this file: "autum.bat" to be run as "autum.bat c u"
How do you create a script to insert these two LETTERS "c u" at the end of the "autum.bat" file?? After that i need to run this file as "autum.bat c u"
THAIS may be some for some of you out here BUT it is a night mare for me....
PLEASE help me... your assistance WILL be greatly APPRECIATED...
Thank you, thank you VERY MUCH!if u mean u want to pass parameters from the command lineto the bat file u need to execute then simply this is it
c:>autum.bat c u
and in ur code u can use the parameters u passed as %1 for the firs parameter and %2 for the secound one
i think this is helpful if i understod ur request
put if u want to insert letter to the end of afile simply do this
echo litter >> filename
You are AWESOME! Thank you for your help BUT how would this look in the script?
I want to Automatically run the file from a script but it needs to have the "c u " after it. What does it suppose to look LIKE? Remember i have never written a script before .
What more is needed?
c:>autum.bat c u
I think that i understand... But how does this look in a script?
Thank you for your reply...!take this as an eg in ur script write call autum.bat c u
where the file autum.bat should be in same directory where ur script is or put the path of it befor its name like this
call directory\autum.bat c uOk,
I think i git it...
Thank you very much! This is an awesome forum... I hope that i can learn more as i stay here...
You are indeed a great person, and again, Thank you!
Have a nice evening/day!
u are welcomed and i think u will get all information and learning about bat files in this website
|