Jump to content

Recommended Posts

Posted

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!


Posted

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.

Posted

2) Done that, but it fails on both rd and rmdir...maybe I should try to copy them into system32 or something...

Posted

Post your cmdlines.txt

Use RD or RMDIR with CMD /C to delete a folder.

cmd3[pn]=['cmd /c  RD /q /s "%AllUsersProfile%\\Start Menu\\Programs\\7-Zip"']

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...