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!
Page 1 of 1
Two small (?) problems
#2
Posted 17 April 2005 - 03:35 AM
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.
2) Try calling a batch file from WPI with the commands to delete files.
#3
Posted 17 April 2005 - 06:22 AM
2) Done that, but it fails on both rd and rmdir...maybe I should try to copy them into system32 or something...
#4
Posted 18 April 2005 - 05:59 AM
Post your cmdlines.txt
Use RD or RMDIR with CMD /C to delete a folder.
Use RD or RMDIR with CMD /C to delete a folder.
cmd3[pn]=['cmd /c RD /q /s "%AllUsersProfile%\\Start Menu\\Programs\\7-Zip"']
#5
Posted 18 April 2005 - 06:03 AM
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 execution
So you can just use rmdir c:\test, you must use cmd /c rmdir c:\test
This 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.
/c means the window will close the window after execution
/k will keep the windows after execution
So you can just use rmdir c:\test, you must use cmd /c rmdir c:\test
This 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.
#6
Posted 18 April 2005 - 06:33 AM
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
Share this topic:
Page 1 of 1



Help
Back to top









