Related:
- Autorun edit on batch
- How to download minecraft bedrock edition on pc for free - Download - Sandbox
- Ping batch file output to text - Guide
- Batch rotate images - Guide
- 'Ipconfig' is not recognized as an internal or external command, operable program or batch file. - Guide
- Can you edit your best friends list with snapchat plus - Guide
1 response
Hi Mridul
You can use biterscripting for batch and automated editing of files.
Let's say you want to insert the first line to file A.bat on drives X:/, Y:/, and Z:/.
The line to be inserted is "THIS IS A COMMENT".
The following script in biterscripting will do the job.
You can download biterscripting at http://www.biterscripting.com . It is free. I like it a lot, since you can automate a lot of such activities without having to manually open each drive, each file, type in the text, etc.
Hope this helps.
You can use biterscripting for batch and automated editing of files.
Let's say you want to insert the first line to file A.bat on drives X:/, Y:/, and Z:/.
The line to be inserted is "THIS IS A COMMENT".
The following script in biterscripting will do the job.
var str drivelist ; set $drivelist = "X:/\tY:/\tZ:/" while ($drivelist <> "") do # Get the next drive and create the file name by appending A.bat . var str file, drive ; wex "1" $drivelist > $drive ; set $file = $drive+"A.bat" # Insert the first line into this bat file. var str content ; cat $file > $content lin "1" "THIS IS A COMMENT\n" $content > $content echo $content > { echo $file } done
You can download biterscripting at http://www.biterscripting.com . It is free. I like it a lot, since you can automate a lot of such activities without having to manually open each drive, each file, type in the text, etc.
Hope this helps.