Guest BL@(K-R34P3R Posted October 16, 2004 Share Posted October 16, 2004 How would I call Autoit to run a batch file I have without using Run? I have a finished batch file, and I want AutoIt to use its code. Possible? Link to comment Share on other sites More sharing options...
nobby Posted October 17, 2004 Share Posted October 17, 2004 Re-write the script to include all of the batch file commands in autoit syntax. I use autoit with batch files a lot and there are no problems in running them from Autoit using Run or RunWait. CheersNobby Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted October 17, 2004 Share Posted October 17, 2004 Oh, the thing is, I just wanted to use the batch file as is. It is kinda long and I don't feel like transferring, oh well. BTW: Larry, my script isn't just running one batch file, its running a series of things. Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 17, 2004 Share Posted October 17, 2004 That still doesn't explain why you don't want to use Run or RunWait. *** Matt @ MPCS Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted October 17, 2004 Share Posted October 17, 2004 Because firstly, I'm making it for a friend also, so I don't know where his files are placed. Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 17, 2004 Share Posted October 17, 2004 So let me get this straight you want to run the files, but you don't know where they are? Without writting a search function to find the files (in which case you couls still use run and runwait), or fileinstall(ing) the files to guarentee their existence... there is no way to run the files. I think Valik is right, I am going to start a rally for those poor defensless PC's being used by people that have no business being in the same room as one. This is a sad day.. *** Matt @ MPCS Link to comment Share on other sites More sharing options...
this-is-me Posted October 17, 2004 Share Posted October 17, 2004 Run(@comspec & ' /c "' & $batchfilepath & '"') Who else would I be? Link to comment Share on other sites More sharing options...
Valik Posted October 17, 2004 Share Posted October 17, 2004 So let me get this straight you want to run the files, but you don't know where they are? Without writting a search function to find the files (in which case you couls still use run and runwait), or fileinstall(ing) the files to guarentee their existence... there is no way to run the files.I think Valik is right, I am going to start a rally for those poor defensless PC's being used by people that have no business being in the same room as one. This is a sad day..*** Matt @ MPCS<{POST_SNAPBACK}>I say what many people consider to be rude things about people. But that's not the sad part, the sad part is the things I say are true. I honestly believe that if breathing were not automatic, a rather large percent of the population would die of asphyxiation. Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 17, 2004 Share Posted October 17, 2004 I agree, thats why I can't help but chuckle when I read your signature:Save a computer, shoot a moron! It is almost too true.*** Matt @ MPCS Link to comment Share on other sites More sharing options...
Valik Posted October 17, 2004 Share Posted October 17, 2004 (edited) Yes, that signature came to me while talking with emmanuel about (another) one of the morons who doesn't appear to have as many working braincells as they have working testicles.Edit: Deleted word that snuck in there that shouldn't of been. Edited October 17, 2004 by Valik Link to comment Share on other sites More sharing options...
ezzetabi Posted October 17, 2004 Share Posted October 17, 2004 I am starting to think that something Valik is right, too. Anyway, BlackDiablo, since I am very kind. I advice you. Take my code (or Larry's one) of _FileSearch(), find your file, Run() it. If your friend renamed it... Bye. Link to comment Share on other sites More sharing options...
Recommended Posts
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