Different current folder for DoubleClick and DragAndDrop
Posted: 31 Oct 2006 05:04
Hello,
here is my script dir.bat :
If you double click this file (dir.bat) you get the file listing of the current folder (the folder where dir.bat is located).
Fine.
But, if you drag and drop a file on dir.bat, you get allays the file listing of the %USERPROFILE% folder
How to get (how to go to) the current folder if you drag and drop a file on dir.bat ?
Thanks in advance.
here is my script dir.bat :
Code: Select all
dir
pause
:: and other command lines
If you double click this file (dir.bat) you get the file listing of the current folder (the folder where dir.bat is located).
Fine.
But, if you drag and drop a file on dir.bat, you get allays the file listing of the %USERPROFILE% folder
How to get (how to go to) the current folder if you drag and drop a file on dir.bat ?
Thanks in advance.