Run Netsh command

Hello

trying to run a netsh command and this is what I have:

delete _appendfile
delete runquiet.bat
appendfile @ echo off
appendfile netsh interface ipv4 show config > c:\temp\config.txt
move _appendfile runquiet.bat
waithidden runquiet.bat
delete runquiet.bat

When I run this using the fixlet debugger I get an error on line 5 where the tool could not copy the file “c:\Profiles Files (x86)\Bigfix Enterprise\BES Client__BESData__FixletDebugger_appendfile” to “c:\Program Files (x86)\BigFix Enterprise\BES Client__BESData__FixletDebugger\runquiet.bat”

The error is file not found at “c:\Profiles Files (x86)\Bigfix Enterprise\BES Client__BESData__FixletDebugger_appendfile”

Not sure why this would be. Any help would be appreciated.

The file "__appendfile" should have two leading underscores, on both the ‘delete’ and ‘move’ statements

UGH, thank you very much. Bitten by the dreaded double underscore. Ouch

1 Like