SpecialK Posted October 30, 2008 Posted October 30, 2008 Hello, i want to start the script2.exe from the file script1.exe. For example: script1: Run (C:\Script2.exe)oÝ÷ Ù'+vjëh×6msgbox (1, "Test", "Script1 is located in ????") I ask myself how i can get the file location from script1 which starts script2. I need the Filepath and the filename for another script which will start a special command which needs the filename. Thank you in advace SpecialK
dbzfanatic Posted October 30, 2008 Posted October 30, 2008 Pass it as a parameter. Script 1: Run("C:\Script2.exe /" & @ScriptFullPath) Script 2: If $cmdline[0] <> "" Then If $cmdline[1] <> "" Then MsgBox(1,"Test","Script 1 is located in: " & $cmdline[1]) Endif Endif Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote]
SpecialK Posted October 30, 2008 Author Posted October 30, 2008 (edited) There is one problem: I don't have the change to edit script1. EDIT: I was too quick It works fine without editing the firt program. Thank you SpecialK Edited October 30, 2008 by SpecialK
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