Jump to content
Sign in to follow this  
mikeylikesit

Works only when in .au3 form?

Recommended Posts

mikeylikesit

Hi all i have a script that works like a charm but as soon as i compile it, it does not work anymore

heres my code:

f Not FileExists("c:\windows\options\cabs") Then

Do

DirCreate("c:\windows\options\cabs")

Until FileExists("c:\windows\options\cabs")

EndIf

FileInstall("C:\Documents and Settings\Mike\Desktop\cabs\cabs\setup1.wav", "c:\windows\options\cabs", 0)

FileInstall("C:\Documents and Settings\Mike \Desktop\cabs\cabs\setup2.wav", "c:\windows\options\cabs", 0)

any clues?

thanks in advanced


Hard work never killed anyone but why take the chance?

Share this post


Link to post
Share on other sites
Jos

Try:

If Not FileExists("c:\windows\options\cabs") Then
   DirCreate("c:\windows\options\cabs")
EndIf
FileInstall("C:\Documents and Settings\Mike\Desktop\cabs\cabs\setup1.wav", "c:\windows\options\cabs\", 0)
FileInstall("C:\Documents and Settings\Mike \Desktop\cabs\cabs\setup2.wav", "c:\windows\options\cabs\", 0)

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
mikeylikesit

nope, no luck, ill keep trying let me know if you get any more ideas


Hard work never killed anyone but why take the chance?

Share this post


Link to post
Share on other sites
mikeylikesit

i still have not got it to work on my own, so any help would be greatly appreciated

thanks

mike


Hard work never killed anyone but why take the chance?

Share this post


Link to post
Share on other sites
schilbiz

i still have not got it to work on my own, so any help would be greatly appreciated

thanks

mike

Try This:

If Not FileExists("c:\windows\options\cabs") Then
Do
DirCreate("c:\windows\options\cabs")
Until FileExists("c:\windows\options\cabs")
EndIf
FileInstall("C:\Documents and Settings\Mike\Desktop\cabs\cabs\setup1.wav", "c:\windows\options\cabs", 0)
FileInstall("C:\Documents and Settings\Mike\Desktop\cabs\cabs\setup2.wav", "c:\windows\options\cabs", 0)

Share this post


Link to post
Share on other sites
schilbiz

If Not FileExists("c:\windows\options\cabs") Then
DirCreate("c:\windows\options\cabs")
EndIf
FileInstall("C:\Documents and Settings\Mike\Desktop\cabs\cabs\setup1.wav", "c:\windows\options\cabs\", 0)
FileInstall("C:\Documents and Settings\Mike\Desktop\cabs\cabs\setup2.wav", "c:\windows\options\cabs\", 0)

Or this here, based off Jos'.

If you are running it on a Vista system make sure to put a #RequireAdmin at the top of your code.

Edit: there was a space in your second FileInstall line between Mike\Desktop.

Edited by schilbiz

Share this post


Link to post
Share on other sites
eltorro

What is the error you are getting?

What os?

I am assuming you're running the compiled and non-compiled script on the same computer. If it works non-compiled then are you removing the files from the dest folder before running the compiled script?

You have overwrite flag off in your FileInstall statements.

Do the files exist in the folder "C:\Documents and Settings\Mike\Desktop\cabs\cabs".

Permissions?

I'm not at a machine right now that I can run a test script on so I'm kind of throwing some things out there.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.