Jump to content


Photo

What is wrong with this batch file?


  • Please log in to reply
6 replies to this topic

#1 Cerest

Cerest
  • Member
  • 157 posts

Posted 30 June 2011 - 12:18 PM

I've been tinkering around... and I have no idea why this .bat file isn't functioning correctly -_-

It's the wrong syntax... but I'm not sure what is bad about it @_@

http://www.shsforums...ion-batch-file/

I've used the syntax I found here.

Perhaps the Widescreen Input is off... but it seems correct to me @_@

Spoiler

Attached Files



#2 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 30 June 2011 - 01:01 PM

EDITED:
Ah, yeah... so it's ;

...

It needs to be:
Echo Enter X coordinate
set /P X=
:: Y coordinate
Echo Enter Y coordinate
set /P Y=
ECHO %X% > WidescreenInput.txt
ECHO %Y% >> WidescreenInput.txt
ECHO Y>> WidescreenInput.txt
Echo.
Pause

Edited by Jarno Mikkola, 30 June 2011 - 01:24 PM.

Deactivated account. The user today is known as The Imp.


#3 Cerest

Cerest
  • Member
  • 157 posts

Posted 30 June 2011 - 01:15 PM

Widescreen prompts a [Y]es/[N]o after resolution selection.

Using the the original code, I get this, which is correct...
1366
768
Y

I also looked at the BiG World Install bat and saw that similar methods were used.

I used X as a variable for both the horizontal and the vertical axis, the
ECHO Y>> WidescreenInput.txt

Just puts a Y after things so the prompt is correct.

Edited by Cerest, 30 June 2011 - 01:16 PM.


#4 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 30 June 2011 - 01:24 PM

Why do you have the
| %M%
In there ??? It might need a definition... edited the post above. The BWS's .bat has that, but the original linked post doesn't... nor does it have the "--skip-at-view", but that should be a WeiDU command.

Edited by Jarno Mikkola, 30 June 2011 - 01:27 PM.

Deactivated account. The user today is known as The Imp.


#5 Cerest

Cerest
  • Member
  • 157 posts

Posted 30 June 2011 - 03:18 PM

type custom_input.txt | Setup-iiSpellSystemAdjustments.exe --language 0     --force-install-list 2002 --skip-at-view | %M%
type custom_input.txt | Setup-iiSpellSystemAdjustments.exe --language 0     --force-install-list 2004 --skip-at-view | %M%


That was you :P I thought It removed the popup readmes.

I removed the --skip-at-view | %M%

I also used this... thank you for something more logical :P

Echo Enter X coordinate
set /P X=
:: Y coordinate
Echo Enter Y coordinate
set /P Y=
ECHO %X% > WidescreenInput.txt
ECHO %Y% >> WidescreenInput.txt
ECHO Y>> WidescreenInput.txt
Echo.
Pause

A bitlot more intuitive then what i had earlier. There seems to be no syntax error message since I removed the %M% stuff ... but for some odd reason it doesn't correctly "type" the coordinates. On this install it doesn't matter much, since widescreen comes early...

>.<

But... I'm missing something... it doesn't seem to like the widescreen input @_@

Edited by Cerest, 30 June 2011 - 03:19 PM.


#6 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 30 June 2011 - 11:19 PM

Hmm, could it be the SPACE key I put in the code

ECHO %X% >

As it gets inserted to the WidescreenInput.txt <_< ... as this definitely worked on a BGII install:
Echo Enter X coordinate
set /P X=
:: Y coordinate
Echo Enter Y coordinate
set /P Y=
ECHO %X%> WidescreenInput.txt
ECHO %Y%>> WidescreenInput.txt
ECHO Y>> WidescreenInput.txt
Echo.
Pause
type WidescreenInput.txt | setup-widescreen.exe --language 0 --force-install-list 0

That was you :P I thought It removed the popup readmes.

That was when we were editing the BiG World Install.bat ... :devil:

Edited by Jarno Mikkola, 30 June 2011 - 11:22 PM.

Deactivated account. The user today is known as The Imp.


#7 Cerest

Cerest
  • Member
  • 157 posts

Posted 01 July 2011 - 10:16 AM

Lol, I just looked at the debug before I read this,

Enter your X coordinate. It should be a number, >= 640.
User answer: "1366 "

Enter your X coordinate. It should be a number, >= 640.
User answer: "768 "

That extra space :P
Yeah, it's fixed now... and there were more yes/no prompts :)
Thanks jarno!

Here is the final code :>

Spoiler

Edited by Cerest, 01 July 2011 - 10:51 AM.