I want to know how can I create a file named e.g myfile.txt in a D:\MyFiles directory and write first & last name in it
I wrote below code for that.
MD D:\Workdirectory\PRIVATE\DOCUMENT\type myfile.txt First_Name Last_Name
You could do something like the following:
echo First_Name Last_Name > D:\MyFiles\myfile.txt