Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Wpi and Autoit

- - - - -

  • Please log in to reply
7 replies to this topic

#1
dannyict

dannyict
  • Members
  • 6 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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, 18 August 2011 - 10:59 AM.



How to remove advertisement from MSFN

#2
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developers
  • 8,705 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Example:

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

#3
dannyict

dannyict
  • Members
  • 6 posts
  • OS:Windows 7 x64
  • Country: Country Flag
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, 20 August 2011 - 03:47 AM.


#4
Kelsenellenelvian

Kelsenellenelvian

    WPI Guru

  • Developers
  • 8,705 posts
  • OS:Windows 7 x64
  • Country: Country Flag
You have 2 spaces in you commandline...

#5
dannyict

dannyict
  • Members
  • 6 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Sorry for that, removed 1 space but still the same.

#6
myselfidem

myselfidem

    Member

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag
You can try:

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

#7
dannyict

dannyict
  • Members
  • 6 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Thanks myselfidem :)...worked

#8
myselfidem

myselfidem

    Member

  • Members
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Thanks myselfidem :)...worked


Thanks! Enjoy, mate. ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN