dannyict Posted August 18, 2011 Share Posted August 18, 2011 (edited) 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;EdukleuterRunWait("Edukleuter.exe /SILENT /SUPPRESSMSGBOXES /NORESTART /SP-")sleep (500)FileCopy("Edukleuters.lnk", @DesktopDir) Edited August 18, 2011 by dannyict Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 19, 2011 Share Posted August 19, 2011 Example:{FILECOPY} "%wpipath%\Games\Pocket Tanks.lnk" "%allusersprofile%\Start Menu\Programs\Games 2" Link to comment Share on other sites More sharing options...
dannyict Posted August 20, 2011 Author Share Posted August 20, 2011 (edited) 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 August 20, 2011 by dannyict Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted August 20, 2011 Share Posted August 20, 2011 You have 2 spaces in you commandline... Link to comment Share on other sites More sharing options...
dannyict Posted August 20, 2011 Author Share Posted August 20, 2011 Sorry for that, removed 1 space but still the same. Link to comment Share on other sites More sharing options...
myselfidem Posted August 20, 2011 Share Posted August 20, 2011 You can try:{DELDIR} "%userprofile%\\Desktop\\folder" Link to comment Share on other sites More sharing options...
dannyict Posted August 22, 2011 Author Share Posted August 22, 2011 Thanks myselfidem ...worked Link to comment Share on other sites More sharing options...
myselfidem Posted August 22, 2011 Share Posted August 22, 2011 Thanks myselfidem ...workedThanks! Enjoy, mate. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now