In a batch program I have:
echo Date >c:\users\...\testecmd.txt
Writes the current date to a text file.
Assuming I do not know where the directory in which the self executable is, how do I get it to call the Current Directory instead of " c: \ users ... \ testcmd.txt "and write this same directory instead of Date p>
echo "c:\Diretorio\atual\" >c:\diretorio\atual\testecmd.txt