Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


dannyict

Wpi and Autoit

8 posts in this topic

Trying to install a program and copy a file to desktop and it's working but when I put the compiled script in WPI

the install runs fine but the file does not get copied to desktop. Anyone has an idea how to fix that?

Is there another way to copy the file to the desktop? I'm using the WPI 8.22 version

Thanks

Here's the script

;Edukleuter

RunWait("Edukleuter.exe /SILENT /SUPPRESSMSGBOXES /NORESTART /SP-")

sleep (500)

FileCopy("Edukleuters.lnk", @DesktopDir)

Edited by dannyict
0

Share this post


Link to post
Share on other sites

Example:

{FILECOPY} "%wpipath%\Games\Pocket Tanks.lnk" "%allusersprofile%\Start Menu\Programs\Games 2"

0

Share this post


Link to post
Share on other sites

Kelsenellenelvian thanks that worked great :)

Now I got another question if you don't mind?

I'm trying to delete a folder from the desktop and used

{DELDIR} "%allusersprofile%\\desktop\\folder"

Did not work, I can't see a where my fault is. Any suggestions?

Edited by dannyict
0

Share this post


Link to post
Share on other sites

Sorry for that, removed 1 space but still the same.

0

Share this post


Link to post
Share on other sites

You can try:

{DELDIR} "%userprofile%\\Desktop\\folder"

0

Share this post


Link to post
Share on other sites

Thanks myselfidem :)...worked

Thanks! Enjoy, mate. ;)

0

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

  • Recently Browsing   0 members

    No registered users viewing this page.