12-21-2005, 08:34 AM
Special folders and environment variables are not automatically expanded in run's second argument. Use str function expandpath.
hosts :run "notepad.exe" _s.expandpath("$windows$\system32\drivers\etc\hosts")
or
hosts :run "notepad.exe" _s.expandpath("%windir%\system32\drivers\etc\hosts")
_s is str variable that does not need to be declared.
hosts :run "notepad.exe" _s.expandpath("$windows$\system32\drivers\etc\hosts")
or
hosts :run "notepad.exe" _s.expandpath("%windir%\system32\drivers\etc\hosts")
_s is str variable that does not need to be declared.
