Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Alternative Operating Systems > Creating a batch file

Creating a batch file
Thread Tools
Addicted to MacNN
Join Date: Apr 2007
Location: Iowa
Status: Offline
Reply With Quote
Nov 20, 2010, 10:23 PM
 
I've done a bit of Googling and can't find a specific solution to my problem. I'm trying to use Display Changer to create a script that will change my resolution in XP (Dell laptop). Every time it wakes up from sleep, it goes to non-native 1280x768 and I have to manually switch it to 1280x800 via the Intel control panel (the Windows Display panel doesn't have the x800 option).

From within the command line, I can enter the following commands, and it will work perfectly:

Code:
cd "C:\Program Files\12noon Display Changer\" dccmd.exe -width=1280 -height=800 -depth=max
and it works perfectly. But I can't get that to work as a BAT or CMD file. When I run the file, I see a command window flash quickly, but the resolution doesn't change.

Any suggestions?

"Specific knowledge on a topic usually demonstrates in-depth knowledge."
     
Moderator
Join Date: Oct 2001
Location: San Jose, CA
Status: Offline
Reply With Quote
Nov 21, 2010, 09:39 AM
 
I'm confused. So this isn't on a Mac? You're saying your Dell laptop doesn't automatically go to its native resolution? I think you need to figure out the cause instead of dealing with a script. Reinstall Windows or contact Dell for support.

Steve
Celebrating 10 years and 4000 posts on MacNN!
     
Moderator
Join Date: Apr 2005
Location: Cambridge, UK
Status: Offline
Reply With Quote
Nov 21, 2010, 10:13 AM
 
Have you installed the latest Intel graphics drivers?
Do you know what version of integrated graphics you have? Intel have a specific driver set for widescreen monitors, where the EDID for the LCD isn't read properly, which could help you.

Moving on, open a command window first, then navigate to the location of the batch file and run it. This way you will see what the error is which is causing it to fail.
     
Administrator
Join Date: Apr 2001
Location: San Antonio TX USA
Status: Offline
Reply With Quote
Nov 21, 2010, 11:35 AM
 
I agree that the latest video driver is essential-but go with the RIGHT driver; Dell has used a lot of different video systems on various laptops, and the one for that particular laptop could be almost anything.

I also agree with seanc about running the batch file from a command prompt after navigating to the batch file's directory. The errors (if any) should be enlightening.

And looking at this from another direction, when you go to the Display Settings (right click on the desktop to get the Properties context menu to do this), go to the Advanced button. One option on the Advanced pane is "what to do when you change settings." Choose the one for "Apply settings without restarting" instead of "Restart before applying..." or "Ask me before applying..." If you already have that selected, choose another option, and "OK" your way all the way out, then go back and reselect "Apply settings without restarting." That should get XP to actually think about the settings. It doesn't happen often with XP, but sometimes it loses track of some settings' values and needs this sort of thing to "refresh" them.
Glenn -----
OTR/L, MOT, Tx
     
Laminar  (op)
Addicted to MacNN
Join Date: Apr 2007
Location: Iowa
Status: Offline
Reply With Quote
Nov 21, 2010, 07:25 PM
 
Originally Posted by ibook_steve View Post
I'm confused. So this isn't on a Mac?
Nope, but I didn't want to join a PC forum just to be the annoying new guy asking a stupid question.

You're saying your Dell laptop doesn't automatically go to its native resolution?
Correct.

I think you need to figure out the cause instead of dealing with a script. Reinstall Windows or contact Dell for support.
It's a work laptop, so I can't reinstall the OS.

Originally Posted by seanc View Post
Have you installed the latest Intel graphics drivers?
Yes (well, they were the latest available when I first tried solving this problem early this year).

Do you know what version of integrated graphics you have?
Yes - 945GM, video BIOS 1343, driver version 6.14.10.4543

Intel have a specific driver set for widescreen monitors, where the EDID for the LCD isn't read properly, which could help you.
If I go into the "Intel(R) GMA Driver for Mobile" Control Panel, I can select 1280x800 and it works fine. If I go into the Windows "Display" control panel x800 isn't an option.

Moving on, open a command window first, then navigate to the location of the batch file and run it. This way you will see what the error is which is causing it to fail.
That's odd. When I drag the batch file into an open command window so that the file's path appears at the command prompt and run it, it works perfectly, but when I double click it, it doesn't work. Could this be a security feature that's preventing me from running batch files?

"Specific knowledge on a topic usually demonstrates in-depth knowledge."
     
Laminar  (op)
Addicted to MacNN
Join Date: Apr 2007
Location: Iowa
Status: Offline
Reply With Quote
Nov 21, 2010, 07:28 PM
 
I went to Intel's website and their wizard said I'm running proprietary drivers. I went to Dell's website for my particular model (Latitude D620) and found its video driver, reinstalled it, and I'm restarting now.

edit: It might be fixed (Display is listing the correct resolution). It seems to be working now, but only time will tell for sure.

"Specific knowledge on a topic usually demonstrates in-depth knowledge."
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2