Sign in to follow this  
Followers 0
Guest BL@(K-R34P3R

Batch Files -> Autoit

11 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

That still doesn't explain why you don't want to use Run or RunWait.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites

Because firstly, I'm making it for a friend also, so I don't know where his files are placed.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Run(@comspec & ' /c "' & $batchfilepath & '"')


Who else would I be?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I agree, thats why I can't help but chuckle when I read your signature:

Save a computer, shoot a moron!

:):);):D

It is almost too true.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites

#10 ·  Posted (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 by Valik

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0