Shirulkar,
Thank you for the answer. I can use the command
set root_dir=%~dp0
from within a dos script to obtain the full directory path of script.
Search found 2 matches
- 13 Feb 2013 15:37
- Forum: DOS Batch Forum
- Topic: How to find full patch of script from within the script
- Replies: 2
- Views: 3713
- 13 Feb 2013 15:15
- Forum: DOS Batch Forum
- Topic: How to find full patch of script from within the script
- Replies: 2
- Views: 3713
How to find full patch of script from within the script
Dear Team Members, Do you know of any variable or procedure to find the full directory Path of a script from within the script when is is run? For example, If the script is called "C:\Program Files\dir1\dir2\joseph.bat" the full directory would be called "C:\Program Files\dir1\dir2\&q...