BladeZ Posted November 13, 2005 Posted November 13, 2005 Hello what im trying to do is create a shortcut with FileCreateShortcut() and then trying to run it with the Run command but im having some problems like the run command not seeing the shortcut can anyone help?
poisonkiller Posted November 13, 2005 Posted November 13, 2005 (edited) From help file:Parametersfilename The name of the executable (EXE, BAT, COM, or PIF) to run. workingdir [optional] The working directory. flag [optional] The "show" flag of the executed program: @SW_HIDE = Hidden window @SW_MINIMIZE = Minimized window @SW_MAXIMIZE = Maximized window standard_i/o_flag [optional] Provide a meaningful handle to one or more STD I/O streams of the child process. 1 ($STDIN_CHILD) = Provide a handle to the child's STDIN stream 2 ($STDOUT_CHILD) = Provide a handle to the child's STDOUT stream 4 ($STDERR_CHILD) = Provide a handle to the child's STDERR streamIt means you cant run .lnk files Edited November 13, 2005 by poisonkiller
BigDod Posted November 13, 2005 Posted November 13, 2005 Hello what im trying to do is create a shortcut with FileCreateShortcut() and then trying to run it with the Run command but im having some problems like the run command not seeing the shortcut can anyone help?I tried this$prog = FileGetShortcut(@DesktopDir & "\WinZip.lnk") run( $prog[0]) Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
BladeZ Posted November 13, 2005 Author Posted November 13, 2005 From help file:Parametersfilename The name of the executable (EXE, BAT, COM, or PIF) to run. workingdir [optional] The working directory. flag [optional] The "show" flag of the executed program: @SW_HIDE = Hidden window @SW_MINIMIZE = Minimized window @SW_MAXIMIZE = Maximized window standard_i/o_flag [optional] Provide a meaningful handle to one or more STD I/O streams of the child process. 1 ($STDIN_CHILD) = Provide a handle to the child's STDIN stream 2 ($STDOUT_CHILD) = Provide a handle to the child's STDOUT stream 4 ($STDERR_CHILD) = Provide a handle to the child's STDERR streamIt means you cant run .lnk files ok well is there a way i can run the real exe with parameters?
BigDod Posted November 13, 2005 Posted November 13, 2005 Just add parameters into command. Run("winvnc.exe -run") Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
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