Can someone help me make a .bat file?

copernicus

New member
Power User
VIP
Local time
4:59 AM
Messages
620
I want to creat a file that toggles my screen between portait and landscape, as well as moving my taskbar from the "right" side of the screen to the "left" side which is now the top.
 

Attachments

  • land.PNG
    land.PNG
    87.9 KB · Views: 99
  • vert.PNG
    vert.PNG
    58.4 KB · Views: 88

My Computer My Computer

OS
7264x64/7260x86
Not sure why you want to do that, but wouldn't it be simpler to just drag the taskbar where you want it. Also, just to be clear, do you want to change your main screen from portrait to landscape? I am not sure that function is built into windows 7 OS, if it is, show me. Then I might be able to write a vb script that does that for you. It might also be built into the video card's control panel. If is a builtin function in the OS, then the script might be possible, if it builtin to the card's control panel, then no.
 

My Computer My Computer

Computer Manufacturer/Model Number
Gigabyte
OS
Windows 7 Ultimate
CPU
Intel Core(TM)2 Quad- Q9550, 2.83GHz
Motherboard
G31M-ES2L
Memory
4GB
Graphics Card(s)
ATI Radeon HD4600
Sound Card
On Board:
Monitor(s) Displays
Acer AL2223W, Acer AL1916
Screen Resolution
1680 x 1050, 1280 x 1024
Hard Drives
160GB
350GB
250GB
250GB
PSU
600W
Case
Cooler Master
Keyboard
Microsoft Laser 6000
Mouse
Logitech Optical Trackman
Internet Speed
1.5MB
Other Info
I am also running a quasar gamatron flux capacitor with twin pulse tronic phasers......jk, I have no such stuff.
right click desktop and then choose screen resolution to get to this page
Capture4.PNG
then orientation to change from portrait to landscape
 

My Computer My Computer

Computer Manufacturer/Model Number
Dell Vostro 1000
OS
Windows 7 Ultimate x86
CPU
AMD Sempron 3600+
Graphics Card(s)
ATI Radeon Xpress 1150
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1200 x 800
Hard Drives
WD Scorpio Blue 500 GB (WD5000BEVT)
Mouse
Logitech V320 Cordless Optical Mouse
Yeah, this is for my netbook w/ touchscreen. I know the options are there, but I would like to be able to quickly switch back and forth. For note taking and reading large texts.

It's rather annoying to go into the resolution options, and dragging the taskbar everytime I want to switch.

Thanks for the screencap redsox.
 

My Computer My Computer

OS
7264x64/7260x86
I would think that your netbook would have settings to that effect - my Tablet PC does - I can set the orientation to face either way when it is rotated into tablet mode, and with a bit of work I should be able to force the taskbar on the other edge, methinks....
 

My Computers My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    The Beast Model A (homebrew)
    OS
    Windows 11 21H2 Current build
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spec
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Plat
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    SteelSeries Apex Pro Wired Gaming Keyboard
    Keyboard
    SteelSeries Apex Pro
    Mouse
    Logitech MX Master 3S | MX Master 3 for business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Antivirus
    Windows Defender + MB 3
    Browser
    Nightly (default) + Firefox (stable),Chrome, Edge
  • Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell Latitude E5470
    OS
    ChromeOS Flex Dev Channel (current)
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics Card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Keyboard
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
I assume this is only available on netbooks\ tablet pc. I do not see that option on my desktop.
 

Attachments

  • no option for orientation.jpg
    no option for orientation.jpg
    60.7 KB · Views: 49

My Computer My Computer

Computer Manufacturer/Model Number
Gigabyte
OS
Windows 7 Ultimate
CPU
Intel Core(TM)2 Quad- Q9550, 2.83GHz
Motherboard
G31M-ES2L
Memory
4GB
Graphics Card(s)
ATI Radeon HD4600
Sound Card
On Board:
Monitor(s) Displays
Acer AL2223W, Acer AL1916
Screen Resolution
1680 x 1050, 1280 x 1024
Hard Drives
160GB
350GB
250GB
250GB
PSU
600W
Case
Cooler Master
Keyboard
Microsoft Laser 6000
Mouse
Logitech Optical Trackman
Internet Speed
1.5MB
Other Info
I am also running a quasar gamatron flux capacitor with twin pulse tronic phasers......jk, I have no such stuff.
I added a third party touchscreen to my netbook, so there's no inherent features/buttons to change the orientation. Just the built in windows options through the resolution panel.
 

My Computer My Computer

OS
7264x64/7260x86
I believe the first post here (under multi-monitor support) has your answer.

EDIT: Just right click on the desktop, and make a new notepad file. Name it whatever you want and copy and paste what's written in that guy's post. Find where he has the numbers for the resolution and change them to whatever you would like your resolution set at (length x width). Choose "save as" when your done and keep the same title with .bat at the end, but before you save it, choose to save it as "all files" instead of ".txt".
 
Last edited:

My Computer My Computer

Computer Manufacturer/Model Number
Acer Aspire 5610
OS
Windows 7 Professional, Windows Longhorn 4074
CPU
Intel Centrino Duo T2350 @ 1.87 GHz
Motherboard
Acer Grapevine
Memory
1GB (2x 512MB DDR2 400Mz)
Graphics Card(s)
Intel Integrated 945GM Chipset
Sound Card
On-Board RealTek HD Audio
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x800
Hard Drives
160GB SATA HD
PSU
Generic PSU
Case
Acer Aspire 5610 Standard Case (U.S. Version)
Cooling
Air
Keyboard
Built-In / Random Logitech wireless keyboard
Mouse
Synaptics Touchpad / Logitech Click! optical mouse.
Internet Speed
2.57 Mbps Download / 0.29 Mbps Upload / 57ms Ping
Other Info
I call it the craptop.
I looked at that post, it addresses resolution, but not orientation. It is still a good script to have, but the OP wants something to change his orientation. I do not seem to have that feature on my desktop. Once again, I assume it is only available on tablet \laptops. Do any of you guys have that option on your desktop?

Try this tool.
EnTech Taiwan | Utilities | iRotate
 

Attachments

  • ScreenShot002.jpg
    ScreenShot002.jpg
    15.6 KB · Views: 27
Last edited:

My Computer My Computer

Computer Manufacturer/Model Number
Gigabyte
OS
Windows 7 Ultimate
CPU
Intel Core(TM)2 Quad- Q9550, 2.83GHz
Motherboard
G31M-ES2L
Memory
4GB
Graphics Card(s)
ATI Radeon HD4600
Sound Card
On Board:
Monitor(s) Displays
Acer AL2223W, Acer AL1916
Screen Resolution
1680 x 1050, 1280 x 1024
Hard Drives
160GB
350GB
250GB
250GB
PSU
600W
Case
Cooler Master
Keyboard
Microsoft Laser 6000
Mouse
Logitech Optical Trackman
Internet Speed
1.5MB
Other Info
I am also running a quasar gamatron flux capacitor with twin pulse tronic phasers......jk, I have no such stuff.
Well you could just make two files and switch the numbers around, couldn't you?
 

My Computer My Computer

Computer Manufacturer/Model Number
Acer Aspire 5610
OS
Windows 7 Professional, Windows Longhorn 4074
CPU
Intel Centrino Duo T2350 @ 1.87 GHz
Motherboard
Acer Grapevine
Memory
1GB (2x 512MB DDR2 400Mz)
Graphics Card(s)
Intel Integrated 945GM Chipset
Sound Card
On-Board RealTek HD Audio
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x800
Hard Drives
160GB SATA HD
PSU
Generic PSU
Case
Acer Aspire 5610 Standard Case (U.S. Version)
Cooling
Air
Keyboard
Built-In / Random Logitech wireless keyboard
Mouse
Synaptics Touchpad / Logitech Click! optical mouse.
Internet Speed
2.57 Mbps Download / 0.29 Mbps Upload / 57ms Ping
Other Info
I call it the craptop.
Thanks zay, that works for now. I still gotta figure out how to move the start menu to the top when I change orientation.

It's gonna mess with my winamp global hotkeys but I'll work around it. I was messing aroud on eee forums for my netbook and someone did something similar and assigned them to the user definable hardware keys on there.

Thanks. Yea I think the orientation changing is for laptop hardware, I don't recall seeing it on my desktop build.

If anyone knows a script to move the start bar it would be much appreciated!
 

My Computer My Computer

OS
7264x64/7260x86
Maybe this is what your looking for: AppBar
 

My Computer My Computer

Computer Manufacturer/Model Number
Acer Aspire 5610
OS
Windows 7 Professional, Windows Longhorn 4074
CPU
Intel Centrino Duo T2350 @ 1.87 GHz
Motherboard
Acer Grapevine
Memory
1GB (2x 512MB DDR2 400Mz)
Graphics Card(s)
Intel Integrated 945GM Chipset
Sound Card
On-Board RealTek HD Audio
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x800
Hard Drives
160GB SATA HD
PSU
Generic PSU
Case
Acer Aspire 5610 Standard Case (U.S. Version)
Cooling
Air
Keyboard
Built-In / Random Logitech wireless keyboard
Mouse
Synaptics Touchpad / Logitech Click! optical mouse.
Internet Speed
2.57 Mbps Download / 0.29 Mbps Upload / 57ms Ping
Other Info
I call it the craptop.
Man you sure are picky, lol. When your orientation changes, just drag the task bar. Also, if you don't want to use hot keys, just use the tray icon to rotate the screen.
 

My Computer My Computer

Computer Manufacturer/Model Number
Gigabyte
OS
Windows 7 Ultimate
CPU
Intel Core(TM)2 Quad- Q9550, 2.83GHz
Motherboard
G31M-ES2L
Memory
4GB
Graphics Card(s)
ATI Radeon HD4600
Sound Card
On Board:
Monitor(s) Displays
Acer AL2223W, Acer AL1916
Screen Resolution
1680 x 1050, 1280 x 1024
Hard Drives
160GB
350GB
250GB
250GB
PSU
600W
Case
Cooler Master
Keyboard
Microsoft Laser 6000
Mouse
Logitech Optical Trackman
Internet Speed
1.5MB
Other Info
I am also running a quasar gamatron flux capacitor with twin pulse tronic phasers......jk, I have no such stuff.
Man you sure are picky, lol. When your orientation changes, just drag the task bar. Also, if you don't want to use hot keys, just use the tray icon to rotate the screen.

I think HP has a turning screen. Hook your laptop up to that and use it. It automagically fixes the orientation. It's right here: HP GW458AA#ABA HP w2207 22" Wide LCD Monitor

EDIT: After looking at it, I think I'll buy one! That's too cool!
 

My Computer My Computer

Computer Manufacturer/Model Number
Acer Aspire 5610
OS
Windows 7 Professional, Windows Longhorn 4074
CPU
Intel Centrino Duo T2350 @ 1.87 GHz
Motherboard
Acer Grapevine
Memory
1GB (2x 512MB DDR2 400Mz)
Graphics Card(s)
Intel Integrated 945GM Chipset
Sound Card
On-Board RealTek HD Audio
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x800
Hard Drives
160GB SATA HD
PSU
Generic PSU
Case
Acer Aspire 5610 Standard Case (U.S. Version)
Cooling
Air
Keyboard
Built-In / Random Logitech wireless keyboard
Mouse
Synaptics Touchpad / Logitech Click! optical mouse.
Internet Speed
2.57 Mbps Download / 0.29 Mbps Upload / 57ms Ping
Other Info
I call it the craptop.
I looked at that post, it addresses resolution, but not orientation. It is still a good script to have, but the OP wants something to change his orientation. I do not seem to have that feature on my desktop. Once again, I assume it is only available on tablet \laptops. Do any of you guys have that option on your desktop?

Try this tool.
EnTech Taiwan | Utilities | iRotate

I have that option on my desktop - although I am not sure why as neither of my X213Ws have the ability to 'rotate', although I could theoretically *mount* them sideways.

Maybe this is what your looking for: AppBar

Hmmmm - nice find.

I think HP has a turning screen. Hook your laptop up to that and use it. It automagically fixes the orientation. It's right here: HP GW458AA#ABA HP w2207 22" Wide LCD Monitor

EDIT: After looking at it, I think I'll buy one! That's too cool!

Ummm, telling the poster to buy a new one is not really much of a solution to getting the current one working, it is?
 

My Computers My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    The Beast Model A (homebrew)
    OS
    Windows 11 21H2 Current build
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spec
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Plat
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    SteelSeries Apex Pro Wired Gaming Keyboard
    Keyboard
    SteelSeries Apex Pro
    Mouse
    Logitech MX Master 3S | MX Master 3 for business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Antivirus
    Windows Defender + MB 3
    Browser
    Nightly (default) + Firefox (stable),Chrome, Edge
  • Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Dell Latitude E5470
    OS
    ChromeOS Flex Dev Channel (current)
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics Card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Keyboard
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
[1]Hmmmm - nice find.
[2]Ummm, telling the poster to buy a new one is not really much of a solution to getting the current one working, it is?

1. Thanks!
2. I know it's not much of a solution, but hey, it's an idea :)
 

My Computer My Computer

Computer Manufacturer/Model Number
Acer Aspire 5610
OS
Windows 7 Professional, Windows Longhorn 4074
CPU
Intel Centrino Duo T2350 @ 1.87 GHz
Motherboard
Acer Grapevine
Memory
1GB (2x 512MB DDR2 400Mz)
Graphics Card(s)
Intel Integrated 945GM Chipset
Sound Card
On-Board RealTek HD Audio
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x800
Hard Drives
160GB SATA HD
PSU
Generic PSU
Case
Acer Aspire 5610 Standard Case (U.S. Version)
Cooling
Air
Keyboard
Built-In / Random Logitech wireless keyboard
Mouse
Synaptics Touchpad / Logitech Click! optical mouse.
Internet Speed
2.57 Mbps Download / 0.29 Mbps Upload / 57ms Ping
Other Info
I call it the craptop.
Maybe this is what your looking for: AppBar


Do I just throw that in a .vbs file and run it?

From my very shallow understanding of coding, that looks like it'll shift the taskbar for me?

I'll try it when I get home, thanks.
 

My Computer My Computer

OS
7264x64/7260x86
No problem. You may have to play around with the text, though.

You can put it in a .bat first, if that doesn't work, go with .vbs :)
 

My Computer My Computer

Computer Manufacturer/Model Number
Acer Aspire 5610
OS
Windows 7 Professional, Windows Longhorn 4074
CPU
Intel Centrino Duo T2350 @ 1.87 GHz
Motherboard
Acer Grapevine
Memory
1GB (2x 512MB DDR2 400Mz)
Graphics Card(s)
Intel Integrated 945GM Chipset
Sound Card
On-Board RealTek HD Audio
Monitor(s) Displays
Generic PnP Monitor
Screen Resolution
1280x800
Hard Drives
160GB SATA HD
PSU
Generic PSU
Case
Acer Aspire 5610 Standard Case (U.S. Version)
Cooling
Air
Keyboard
Built-In / Random Logitech wireless keyboard
Mouse
Synaptics Touchpad / Logitech Click! optical mouse.
Internet Speed
2.57 Mbps Download / 0.29 Mbps Upload / 57ms Ping
Other Info
I call it the craptop.
Back
Top