Jump to content

@Comspec


Recommended Posts

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 by thatsgreat2345
Link to comment
Share on other sites

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 by thatsgreat2345
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...