January 25, 200619 yr Um, basically im trying to do some cmd automation... namely... im trying to execute another application and then use that application with flags etc... ie.. the problem im coming up with is trying to execute a second command following the first by using the filemaker carriage return... i.e. The following works... cmd /c pathd c:application path & P The following doesnt... cmd /c pathd c:application path & P & Lap -i window.jpg -o window2.jpg & P im clearly doing something wrong... how do you send multiple ''events''? Cheers, genx
January 25, 200619 yr Author hmmm. basically what im wanting to know is how you put multiple commands on one line, and could someone please give me an example? cheers genx
January 25, 200619 yr don't use returns. You can send multiple commands at the same time by separating the commands with "&" or "&&". With "&" cmd will execute the 2nd command even if the first one failed. With "&&" the 2nd one will only fire if the first one succeeded. You can string as many commands together as you like but there is a maximum # of characters to a command line (8000 or so I think). Hunt for this file on your machine for more info: ntcmds.chm
Create an account or sign in to comment