cmd - Double-quoted string not working when I run an .au3 file in the command prompt -


my script writes file path uploading file. ran same script in 2 different ways. runs in first way, fails in second way.

$spath="c:\programdata\cisco systems\screen , clean\isb7k_2k\configuration\op_and_settings_config.bin"  controlsettext("[title:open]", "", "[id:1148]", $spath) 
  • first way: when ran script using script editor; sent/wrote proper file path.

  • second way: when called same script cmd.exe, sent/ wrote file name (not complete file path). how can fix this?

in spirit of xenobiologist's comment, when have quoted string in command line (your cmd.exe scenario), need wrap in single quotes; interface can throw hissy fit (pardon technical term) if try pass string single quotes.

use $spath='"c:\programdata\cisco systems\screen , clean\isb7k_2k\configuration\op_and_settings_config.bin"'


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -