MSFN Forum: Two small (?) problems - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Two small (?) problems Rate Topic: -----

#1 User is offline   tiwas 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 17-August 04

  Posted 17 April 2005 - 01:00 AM

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!


#2 User is offline   S0mE0nesMiNd1 

  • Member
  • PipPip
  • Group: Members
  • Posts: 168
  • Joined: 15-December 04

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.

#3 User is offline   tiwas 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 17-August 04

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 User is offline   Dahi 

  • Member
  • PipPip
  • Group: Members
  • Posts: 146
  • Joined: 25-November 03

Posted 18 April 2005 - 05:59 AM

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"']


#5 User is offline   Martin Zugec 

  • MSFN Expert
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,373
  • Joined: 24-January 04

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.

#6 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

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


#7 User is offline   tiwas 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 17-August 04

Posted 18 April 2005 - 07:33 AM

Excellent! Thanks for that, all - going to try now :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy