So far I have the following in my batch file:
%comspec% /c ipconfig | find "IPv4" > %HOMEPATH%\desktop\MyIP.txt %comspec% /c start notepad %HOMEPATH%\desktop\MyIP.txt
However, when I run the batch file, MyIP.txt is empty when displayed.
On the other hand, when I run each line one after another from Windows-Start search field it works.
Any ideas how to fix it?