Sign in to follow this  
Followers 0
Guest BlackDiablo110

Running Desktop File

28 posts in this topic

Ok here's what I want to do:

Run a desktop folder. It is not saved anywhere else. This is what I have tried so far:

Run('"MyFolder"','C:\Documents and Settings\Randall Degges\Desktop')

This isn't working for some reason... I'm pretty sure that I have all the right quotes. Can anyone tell me what's wrong?

Share this post


Link to post
Share on other sites



Also, I wanted to run another file inside of that folder that I will open up, is there a way to do that also? For example: I want to open the folder, then run the program inside.

Share this post


Link to post
Share on other sites

@DesktopDir path to current user's Desktop

Share this post


Link to post
Share on other sites

I don't understand what you mean, I know that you just gave me a command, but I don't know how to use it. =(

Here is the specific file that I WANT to run: Damnation

Here is its location: C:\Documents and Settings\Randall Degges\Desktop\MultiHack

How exactly would the Run look for it? If you could tell me it would be really helpful lol. Thanks.

Share this post


Link to post
Share on other sites

Oh, 1 more thing, I think its technical name is "Damnation.exe"

Share this post


Link to post
Share on other sites

Run("C:\Documents and Settings\Randall Degges\Desktop\MultiHack\Damnation.exe")

Share this post


Link to post
Share on other sites

OOOOOOOO, I never knew that you could do it all with one line!!!! The Help File confused me. Thanks sooo much!

Share this post


Link to post
Share on other sites

Actually... One more thing, I just tried what you said. And it works fine! BUT, for this to work I NEED to open up the Multihack file first, then open up the Damnation.exe file, this is because the Multihack file has .dll files in it, that affect the Damnation.exe program, so if I run the Damnation.exe directly, it won't work, because it doesn't consider the .dll files to be present. How can I open up the Multihack folder FIRST, then open up damnation.exe?

This is what I tried, but it said that it wouldn't work.

Run("C:\Documents and Settings\Randall Degges\Desktop\MultiHack")

Run("C:\Documents and Settings\Randall Degges\Desktop\Multihack\Damnation.exe")

Share this post


Link to post
Share on other sites

Runwait("C:\Documents and Settings\Randall Degges\Desktop\MultiHack")
Run("C:\Documents and Settings\Randall Degges\Desktop\Multihack\Damnation.exe")

Share this post


Link to post
Share on other sites

RunWait didn't work =/. It just gives me an error "Error when executing the external program."

I know that there is some way around this... Hmm... Either that or would I have to use the mouse to across desktop, open multihack, then run damnation.exe... That would be hard though.

Share this post


Link to post
Share on other sites

Try a bat file .

start Damnation.exe

name it Damnation.bat

then call it with the au3

Run("C:\Documents and Settings\Randall Degges\Desktop\Multihack\Damnation.bat")

see if that works .

Share this post


Link to post
Share on other sites

Well, what I did was I put start Damnation.exe into the code, renamed the program, "Damnation.bat" then ran it, but still got an error message. Then I tried it with the

Run("C:\Documents and Settings\Randall Degges\Desktop\Multihack\Damnation.bat")

but that didn't work. Could you explain what you mean by "name it Damnation.bat" and "then call it with the au3"... And also, would my ONLY code look like "start Damnation.exe" or would their be more?

Share this post


Link to post
Share on other sites

Ok well this is what i just did:

put your .bat file into the Multihack folder, then I changed my code to look like this:

Run("C:\Documents and Settings\Randall Degges\Desktop\Multihack\Damnation.bat")

But it didn't work. Should my code look different? And how did you make that bat file and what does it do, just curious.

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

You can try it this way and see if it works ? make this a au3 file

Run(@ComSpec & " /c Damnation.exe")

run it from the same folder the Damnation.exe is in .

then go from there to get it to work .

Edited by bobheart

Share this post


Link to post
Share on other sites

I don't understand what you mean. =( I'm trying to understand it, but what do you mean by "make this a au3 file"? And would Run(@ComSpec & " /c Damnation.exe") be the only code?

Share this post


Link to post
Share on other sites

Au3 is the script ext ..

name whatever.au3

runD.au3

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

Run('"C:\Documents and Settings\Randall Degges\Desktop\Multihack\Damnation.exe"',"C:\Documents and Settings\Randall Degges\Desktop\MultiHack")

that'll run the damnation.exe with the multihack dir as it's working dir, that's as if you ran it from there.

edit-added quotes around the path to the exe incase that's an issue (xp is odd that way, sometimes it helps, but it never hurts)

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

I made a .au3 file with

Run(@ComSpec & " /c Damnation.exe")

as the only code inside. Now what?

Share this post


Link to post
Share on other sites

I made a .au3 file with

Run(@ComSpec & " /c Damnation.exe")

as the only code inside. Now what?

<{POST_SNAPBACK}>

Now run it?

I don't think that'll work, you might try my code...


"I'm not even supposed to be here today!" -Dante (Hicks)

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