It has to create full folder path, along with the empty file. My requirement is i will get textfile path as argument and if that file doesn't exists, need to create the file.
I thought to get the path first and check if that folder exists, if not create the folder path, Then create empty file using TYPE nul.
Can i get some thing like in java, String subStr = str.subString(0, str.lastIndexOf('.')) , how to do that using windows batch script .Any suggestions plz, Thanks in advance.