I have a batch file(lunch.bat) to run which has command to run another batch file(main.bat). I copyied this two files in my pendrive. I know my pendrive's drive latter in my computer,that's why i can configure 1st batch file(lunch.bat) to run another batch on my computer. But when i copy this two files in my pendrive and insert it to another computer, 1st batch file can't run another batch file. So this is a problem for me. Can anybody help me to get current directory command like c++(GetCurrentDirectory) function to run batch from any computer and from any drive?