Thatsgreat2345 Posted November 23, 2006 Share Posted November 23, 2006 (edited) I'm having a little trouble understand specifically the parameters to throw after @Comspec. Navigate to a folder with "cd C:\TASM\BIN" then add another parameter that says "Tlink File.asm" 2 commands i need to be put in but am failing to do so "cd C:\TASM\BIN" "Tlink C:\TASM\BIN\FILE.asm" #include <GUIConstants.au3> $Form1 = GUICreate("TASM Compiler", 236, 101, 193, 115) $select = GUICtrlCreateButton(".asm File", 0, 8, 81, 25, 0) $path = GUICtrlCreateInput("", 88, 8, 137, 21) $compiledpath = GUICtrlCreateInput("", 8, 72, 217, 21) $Label1 = GUICtrlCreateLabel("Path To Compiled Program", 32, 48, 130, 17) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $select $file = FileOpenDialog("Select ASM File For TASM to Compile","","ASM Files (*.asm)") ;FileMove($file,"C:\TASM\BIN") RunWait(@ComSpec & "/cd","C:\TASM\BIN") EndSelect WEnd Edited November 23, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
dabus Posted November 23, 2006 Share Posted November 23, 2006 Run(@ComSpec & ' /k pwd') Sleep(1000) FileChangeDir ( "C:" ) Run(@ComSpec & ' /k pwd') Sleep(1000) Run(@ComSpec & ' /k pwd', @WindowsDir) Link to comment Share on other sites More sharing options...
Valuater Posted November 23, 2006 Share Posted November 23, 2006 Autoit Wrappers has a Comspec catagoryhttp://www.autoitscript.com/forum/index.ph...st&p=2239518) Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted November 23, 2006 Author Share Posted November 23, 2006 (edited) Autoit Wrappers has a Comspec catagory http://www.autoitscript.com/forum/index.ph...st&p=223951 8) THANK YOU cant believe i didnt find that RunWait(@ComSpec & ' /c ' & ' Tlink C:\TASM\BIN\FILE.asm ', 'C:\TASM\BIN') who needs cd when you just set the stupid active directory to C:\TASM\BIN already hahahah thanks to you to dabus made me think as well when i ran your script that the second parameter is indeed working directory so no need for cd Edited November 23, 2006 by thatsgreat2345 Link to comment Share on other sites More sharing options...
dabus Posted November 23, 2006 Share Posted November 23, 2006 Really love to see that veteran posters got their "times"... 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