Jump to content
The simFlight Network Forums

How to run a batch file with FSUIPC?


Recommended Posts

Hi!

 

I fell very dumb asking this question, but I'm not seeing what I'm doing wrong here!

 

I have a registered FSUIPC version 4.92 and I added the following lines to the ini file:

 

[Programs]
Run1=HIDE,”D:\Microsoft Flight Simulator X\Aero.bat”
 
Batch file content is only
net stop uxsms
net start uxsms
 
I thought that inbetween clicking fly now and finishing loading everything, the Windows Aero would load up again (the VSync stuff), but nothing is happening! :)
 
What am I doing wrong? This doesn't seems to be rocket science, but I'm missing it big time! 
 
Regards,
Daniel
Link to comment
Share on other sites

I have a registered FSUIPC version 4.92 and I added the following lines to the ini file:

 

[Programs]
Run1=HIDE,”D:\Microsoft Flight Simulator X\Aero.bat”

 

I thought that inbetween clicking fly now and finishing loading everything, the Windows Aero would load up again (the VSync stuff), but nothing is happening! :)

 

No. FSUIPC will attempt to run that file when FSUIPC is first started, it won't wait for "Fly Now" -- the "READY" option delays until your sim is "ready to fly".

 

Did you check the log file to see if there was an error finding or running the file? Are you sure the path is correct, because if it cannot find it it cannot run it. Are you sure you did not but Aero.bat into the Modules filder?

 

Pete

Link to comment
Share on other sites

Hello Pete.

 

Thank you for answering so fast, as usual!

 

I'm sure the path is the correct one.

 

I can see an error in the log, but I don't know the exact meaning, but the obvious FSUIPC couldn't run it

Here it is:

 

 234 FSUIPC couldn't run: "”D:\Microsoft Flight Simulator X\Aero.bat”" [Error=267]

Link to comment
Share on other sites

I'm sure the path is the correct one.

 

I can see an error in the log, but I don't know the exact meaning, but the obvious FSUIPC couldn't run it

Here it is:

 

 234 FSUIPC couldn't run: "”D:\Microsoft Flight Simulator X\Aero.bat”" [Error=267]

 

You can look up Windows system error codes -- google "System Error Codes".

 

Error 267  shows that the path you provide is not correct.

ERROR_DIRECTORY
The directory name is invalid.
267 (0x10B) 

What I find odd in the error you are showing is the double sets of quotes "" at each end. Looking closely they look to be different character, in fact. If I try an invalid folder I get:

 

     23244 FSUIPC couldn't run: "E:\FSX\XModules\FSX2.BAT" [Error=267]

 

Single sets of quotes, not double.

 

I think that you are not using a text editor to edit the INI file and the quotes characters you are using are the Unicode different left and right quotes as used in Word Processing. I'm afraid only normal ASCII quotes work.

 

Regards

Pete

Link to comment
Share on other sites

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.