|
Answer» hi below is part of the script in which i am facing problem.
%9 is the ninth parameter that CONTAINS a path, suppose D:/files. There are MULTIPLE files that i have to use in this path, therefore cannot pass the absolute path of the filename as parameter. So i am appending the file name to the path passed as parameter.
if i dont give mybat.bat 1>>%9\nics.log command at the end to create a log file, everything RUNS smoothly, but after adding this command to the script, the batch file is unable to file D:/files/dns.txt file as '.' is appended at the end of the file name making it D:/files/dns.txt.
I badly need a solution to this, please help me out...
Code: [Select]for /f %%d in (%9\dns.txt) DO ( NETSH interface ip add dns "Local Area Connection" %%d )
echo NEW NETWORK CONFIGURATION: ipconfig netsh interface ip show dns
[b]mybat.bat 1>>%9\mylog.log[/b]
Thanks in advance.one can also refer to the page below to further analyse the problem:
http://www.freedos.org/freecom/appendix.html
|