Genx Posted January 25, 2006 Posted January 25, 2006 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
Genx Posted January 25, 2006 Author Posted January 25, 2006 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
Wim Decorte Posted January 25, 2006 Posted January 25, 2006 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
Recommended Posts
This topic is 6919 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now