ozbob Posted January 18, 2005 Share Posted January 18, 2005 We have run into an issue calling a console command (makeiso.exe). When opening the command prompt and calling the application from there it works fine. When using an autoit scipt using the same command it results in a reboot of the PC. We have tried to use the comspec command but also this results in a reboot. Other commands run fine, we have had the same result with miso.exe (magic iso). Both commands are used to create iso files from the command line. This is the command we used and crashed the PC: $val = RunWait("d:\xplode\basic_install\wpi\common\makeiso.exe -J -r -V -v -o d:\backup.iso -graft-points -path-list d:\xplode\basic_install\wpi\common\test2.txt",@SW_MAXIMIZE) the text file test2.txt contains the graft points and contains 2 lines: adobe=d:\xplode\basic_install\adobe dvdtools=d:\xplode\basic_install\dvdtools In addition the same results when calling a batch file that contains the same line as in the script when calling from autit crashes the PC. Does anyone have any suggestions? is this a bug? Link to comment Share on other sites More sharing options...
CyberSlug Posted January 18, 2005 Share Posted January 18, 2005 What operating system, and what version of AutoIt? Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
ozbob Posted January 18, 2005 Author Share Posted January 18, 2005 What operating system, and what version of AutoIt?<{POST_SNAPBACK}>Windows 2000 SP4 + AutoIt v3 Link to comment Share on other sites More sharing options...
MHz Posted January 18, 2005 Share Posted January 18, 2005 (edited) This is the command we used and crashed the PC:$val = RunWait("d:\xplode\basic_install\wpi\common\makeiso.exe -J -r -V -v -o d:\backup.iso -graft-points -path-list d:\xplode\basic_install\wpi\common\test2.txt",@SW_MAXIMIZE)With this line, you have @SW_MAXIMIZE as your working directory parameter.Perhaps should be as below$val = RunWait("d:\xplode\basic_install\wpi\common\makeiso.exe -J -r -V -v -o d:\backup.iso -graft-points -path-list d:\xplode\basic_install\wpi\common\test2.txt", "",@SW_MAXIMIZE)Looking at what is a project folder? Are you using magiciso.exe, to make an iso, while it is within the compilation itself?Edit grammer Edited January 18, 2005 by MHz Link to comment Share on other sites More sharing options...
ozbob Posted January 18, 2005 Author Share Posted January 18, 2005 Unbelievable!!!!! It works after I added the ,"", as the working directory I guess I can say that I'm a @#@$!@$!@#% Thanx a lot!!!!!!!! Link to comment Share on other sites More sharing options...
SlimShady Posted January 18, 2005 Share Posted January 18, 2005 My version: ;%CD% equals the current working directory. Which is in this example: "d:\xplode\basic_install\wpi\common" $Arguments = "-J -r -V -v -o d:\backup.iso -graft-points -path-list %CD%\test2.txt" $val = RunWait(@ComSpec & " /c %CD%\makeiso.exe " & $Arguments, "d:\xplode\basic_install\wpi\common", @SW_MAXIMIZE) Link to comment Share on other sites More sharing options...
ozbob Posted January 18, 2005 Author Share Posted January 18, 2005 Thank you all for your fast reply. I was getting rather frustrated on my script but you guys pointer me in the correct direction! Link to comment Share on other sites More sharing options...
CyberSlug Posted January 18, 2005 Share Posted January 18, 2005 Good catch. I still wonder why a bug like that would cause a reboot, though. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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