/build/static/layout/Breadcrumb_cap_w.png

k2000 3.6 broke my batch script

Upgrade to 3.6

Some where in the depths of this site is my partition script I wrote to dynamically determine the partition layout, preserve the OEM partition if it exsists and create a single new partiton to install XP or Windows 7(w/o recovery part).

It is a batch script which calls txt files with diskpart commands inside and uses the error codes to determine if partitions exsist and how to handle them.

The batch script and txt files are zipped and called with a command line of:

call partitionsetup-1part.bat 

From what I can tell this isn't working in the slightest. Help much appreciated.


2 Comments   [ + ] Show comments
  • I've tried removing the "call" from the task with no success - RandomITPro 10 years ago
  • So I imagine it is a pre-installation task "application type"
    Have you tried to use cmd /cpartitionsetup-1part.bat ? - StockTrader 10 years ago

Answers (1)

Answer Summary:
call partitionsetup-1part.bat in and an application type task, needs to become: cmd /c partitionsetup-1part.bat
Posted by: BHC-Austin 10 years ago
4th Degree Black Belt
1

As StockTrader suggested in his comment, you may want to try:

cmd /c partitionsetup-1part.bat

Also, here's an overview of changes that need to be made to post install tasks to work with the new Task Engine:

http://www.kace.com/support/resources/kb/solutiondetail?sol=SOL118913

The other thing you may want to look at is creating a new pre-install DISKPART task, instead of using a Batch file.


Comments:
  • yeah I had read that article but it didn't mention the cmd /c. That was the fix. I have recommend to support that they add "cmd /c" to their kb article - RandomITPro 10 years ago
    • you don’t need "cmd /c" all you need is the name of the .bat file,
      "partitionsetup-1part.bat"
      It is strange that you report it doesn’t work this way as I have yet to see it fail in this manner.

      Corey
      Lead T3 Enterprise Solutions Consultant, K2000 - cserrins 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ