tiwas Posted April 17, 2005 Share Posted April 17, 2005 Hey guys,I'm back with a couple of questions I hope are easy to answer.1. I'm trying to convert some of my cmd's into exe's using Quick Batch File Compiler, but these don't seem to want to run from cmdlines.txt. Any tips regarding this ?2. I'm also trying to delete some files during WPI setup, but Windows tells me rmdir is not a valid command. I've also tried using winrar (sfx) to do it, but it doesn't delete the files like I ask it to.Thanks for any help! Link to comment Share on other sites More sharing options...
S0mE0nesMiNd1 Posted April 17, 2005 Share Posted April 17, 2005 1) Why? From what I know, compiling a batch file is only useful for other OSes and the fact that you cant see the source code. I woudnt know why it woudnt run in CMDlines other than a general error (Typo ?)2) Try calling a batch file from WPI with the commands to delete files. Link to comment Share on other sites More sharing options...
tiwas Posted April 17, 2005 Author Share Posted April 17, 2005 2) Done that, but it fails on both rd and rmdir...maybe I should try to copy them into system32 or something... Link to comment Share on other sites More sharing options...
Dahi Posted April 18, 2005 Share Posted April 18, 2005 Post your cmdlines.txtUse RD or RMDIR with CMD /C to delete a folder.cmd3[pn]=['cmd /c RD /q /s "%AllUsersProfile%\\Start Menu\\Programs\\7-Zip"'] Link to comment Share on other sites More sharing options...
Martin Zugec Posted April 18, 2005 Share Posted April 18, 2005 Yep, you MUST call internal command with prefix cmd:/c means the window will close the window after execution/k will keep the windows after executionSo you can just use rmdir c:\test, you must use cmd /c rmdir c:\testThis is because rmdir is internal command of command interpreter (in this case cmd). You can try to run rmdir from Start -> Run, you will get the same error. Link to comment Share on other sites More sharing options...
Incroyable HULK Posted April 18, 2005 Share Posted April 18, 2005 If you want to launch a Compiled batch file, you must do it from the GuiRunOnce from your winnt.sif file:[GuiRunOnce]%systemdrive%\stuff.exe Link to comment Share on other sites More sharing options...
tiwas Posted April 18, 2005 Author Share Posted April 18, 2005 Excellent! Thanks for that, all - going to try now 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