Jump to content

Search the Community

Showing results for tags 'batch files not working'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum
  • AutoIt

Calendars

  • Community Calendar

Found 1 result

  1. Hi, has anyone had this problem? I have made a GUI to help setup new systems for sale. When i boot the new system into audit mode and use my GUI, i have a button that runs a .cmd/.bat file that copies a answer file to the sysprep folder. The thing is that when i use the GUI it will not copy the file, but if i run the file by hand it works fine. My question is why will it not work with my GUI? It only has this issue with coping a file. Here is my gui ;This creates the varibles required for the proccess $RUNWin7Home = "start COPYHOME.CMD" ; Var for preparing the HDD for imageing $RUNWin7Pro = "start COPYPRO.CMD" ; Var for running LCC Custom Windows Setup $RUNSysprepFolder = "start SYSPREPFOLDER.CMD" ; Var for Applying Image to HDD for IntelWin7Home64 $RUNKeyFinder = "start keyfinder.exe" ; Var for Applying Image to HDD for IntelWin7Pro64 $RUNRunSysprep = "start Startsysprep.cmd" ; Var for Capturing Image from HDD to Server IntelWin7Home64 ;this the main GUI page $width = 450 $height = 324 $Formmain = GuiCreate("New Build Sysprep Tool",450,324,@DesktopWidth/2 - $width/2, @DesktopHeight/2 - $height/2) $wPos = WinGetPos($Formmain) $Win7Home=GuiCtrlCreateButton("Win7 Home",28,72,90,33) $Win7Pro=GuiCtrlCreateButton("Win7 Pro",28,118,90,33) $SysprepFolder=GuiCtrlCreateButton("Sysprep Folder",28,164,90,33) $KeyFinder=GuiCtrlCreateButton("Key Finder",28,210,90,33) $RunSysprep=GuiCtrlCreateButton("Run Sysprep",28,256,90,33) $label1=GuiCtrlCreateLabel("New Build Sysprep Tool",84,15,400,50) GUICtrlSetFont(-1, 18, 800, 0, "MS Sans Serif") $label2=GuiCtrlCreateLabel("Puts Answer File In Sysprep Folder",129,72,300,100) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") $label3=GuiCtrlCreateLabel("Puts Answer File In Sysprep Folder",129,118,300,100) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") $label4=GuiCtrlCreateLabel("Opens Sysprep Folder",129,164,300,100) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") $label5=GuiCtrlCreateLabel("Finds Windows Key",129,210,300,100) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") $label6=GuiCtrlCreateLabel("Runs Sysprep",129,256,300,100) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GuiSetState(@SW_SHOW) While 1 $msg=GuiGetMsg() If $msg=-3 Then Exit If $msg=$Win7Home Then Win7Home() If $msg=$Win7Pro Then Win7Pro() If $msg=$SysprepFolder Then SysprepFolder() If $msg=$KeyFinder Then KeyFinder() If $msg=$RunSysprep Then RunSysprep() Wend Func Win7Home() Run(@ComSpec & " /c " & $RUNWin7Home, "", @SW_HIDE) EndFunc Func Win7Pro() Run(@ComSpec & " /c " & $RUNWin7Pro, "", @SW_HIDE) EndFunc Func SysprepFolder() Run(@ComSpec & " /c " & $RUNSysprepFolder, "", @SW_HIDE) EndFunc Func KeyFinder() Run(@ComSpec & " /c " & $RUNKeyFinder, "", @SW_HIDE) EndFunc Func RunSysprep() Run(@ComSpec & " /c " & $RUNRunSysprep, "", @SW_HIDE) EndFunc
×