Jump to content

Tdurrant

Members
  • Posts

    4
  • Joined

  • Last visited

Tdurrant's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I feel like i have been going in circles and getting no where I am trying to do a git pull LOCAL $sTemp = '"C:\Program Files (x86)\Git\bin\git.exe" pull' LOCAL $sLine = '' local $sToWrite = '' local $PID = Run($sTemp,$GitDir,@SW_MAXIMIZE, $STDIN_CHILD + $STDOUT_CHILD) StdinWrite($PID,$sToWrite) IF( $PID <> 0) THEN While 1 $sLine &= StdoutRead($PID) MsgBox(0,'returned',$sLine) If @error Then ExitLoop Sleep(25) Wend Exit EndIf i have also tried LOCAL $sTemp = '"C:\Program Files (x86)\Git\bin\git.exe" pull' LOCAL $sLine = '' local $PID = Run($sTemp,$GitDir,@SW_MAXIMIZE, $STDIN_CHILD + $STDOUT_CHILD) StdinWrite($PID) IF( $PID <> 0) THEN While 1 $sLine &= StdoutRead($PID) MsgBox(0,'returned',$sLine) If @error Then ExitLoop Sleep(25) Wend Exit EndIf This triggers the command prompt which gives me this info eventually Username for 'SomeNonGitHubRepositiory': Problem is that My message box always returns a blank without erroring out If it did return somethign then i would do $sToWrite = 'Username' StdinWrite($PID,$sToWrite) What did i miss?
  2. I may being slow but I am not sure how that would help, so i may not being explaining my self well Idea is to write a program in auto it that generates an exe that is only RUN(Location,Location3) to allow any one to generate an exe for the webervice instead of me making a new exe every time
  3. Alas, it was tiddy before posting, but when i went to edit it it decided to screw the formating #AutoIt3Wrapper_icon = bMobile.ico Dim $sLocation = '' Dim $sLocation2 = '' Dim $iError = '' Dim $sLocation1 = 'B:\Content' $sLocation1 = InputBox("Web Directory", "Where is the Content folder for bmobile located?" & @CRLF & @CRLF & "Must be Mapped drive of this computer", $sLocation1) Dim $sLocation3 = '\\192.168.10.50\Stuff\TestBuild\Promotimng USA B0908\Workstation' $sLocation3 = InputBox("bMobile Worstationfolder", "Where is the bMobile workstation located?" & @CRLF & @CRLF & "Must be \\[IP ADRESS OF SERVER]\[Folder holding RouteManager.exe]", $sLocation3) $sLocation = $sLocation3 & '\RouteManager.exe'; $sLocation2 = $sLocation1 & '\Desktop\' & 'bMobile Desktop'; $iError = FileCreateShortcut($sLocation, $sLocation2, $sLocation3) If $iError = 1 Then MsgBox(0, 'Sucess', 'Desktop Shortcut created') Else MsgBox(0, 'Failure', 'Report Imeditely') EndIf hopefully
  4. Here is what I want to do I want to make an Executable with auto it that makes an exuctable for running a software from a server directory that can be downloaded on IIS Situation: Currently work for a company that installs the software on a central server drive User then has to remember to make a shortcut link to their desktop So i thought maybe i can get auto it to auto generate an exe for me(.lnk can not be downloaded) the created .exe is really simple Run(Location,Location3) i ever have the a script that makes a .lnk now DIM $sLocation = '' DIM $sLocation2 = '' Dim $iError ='' DIM $sLocation1 = 'B:\Content' $sLocation1 = InputBox ( "Web Directory", "Where is the Content folder for web service located?" & @CRLF & @CRLF & "Must be Mapped drive of this computer",$sLocation1) DIM $sLocation3 = 'W:\workstation' $sLocation3 = InputBox ( "EXE folder", "Where is the workstation located?" ,$sLocation3) $sLocation = $sLocation3 & '\FileToRun.exe'; $sLocation2 = $sLocation1 & '\' & 'Desktop.lnk'; $iError = FileCreateShortcut($sLocation, $sLocation2,$sLocation3) IF $iError = 1 Then MsgBox(0,'Sucess', 'Desktop Shortcut created') Else MsgBox(0,'Failure', 'Report Imeditely') endif Am I missing something simple or have I thought of a problem without a simple solution
×
×
  • Create New...