If you're familiar with MS-DOS at all, you'll recall that it's a command-driven operating system that performs functions issued at the C:> prompt. The only way to get an MS-DOS computer to do something was to type a command at this prompt and if you can imagine, it was a rather cumbersome way to use a computer.
As an example, to load up Microsoft's simple editing program, you had to type the name of the drive that the program was on, the directory that the program was in, and then the name of the program. So if Microsoft Edit was in a directory or folder named "Process," you could start the program by typing, "C:>process\edit.com" Then, and only then would the program load up for use.
This is a small command, but just imagine if you had a program that was deeply nested within a series of folder. You could end up typing a command as wide as your computer screen or worse, long enough that the entire command would have to wrap onto the next line! Now imagine having to type these long commands every time that you wanted to start a program. Yikes!
That's one of the reasons why batch files became so popular. Batch files are small text-based documents that contain a bunch of these commands on their own lines. When executed, they would process each command without the user having to type each and every one of them.
When Windows was developed, the need for typing commands was essentially eradicated thanks to the introduction of the point-and-click (mouse) interface. But this didn't stop the batch file fever that started under MS-DOS - and in some small circles, batch files are still as popular as they were in the beginning.
Even though you may use Windows XP or Vista, batch files can save you tons of time by automatically starting multiple programs and performing different tasks at the single click of a button. They don't require any extensive programming background and they don't need to be encrypted with some weird, expensive compiler. Batch files are plain text files, and you can build one for your own personal use with Windows' Notepad.
You could make a batch file that loads up your favorite websites at once for example, or you could make a batch file that fills your desktop with the most important applications for the day. To do so only requires a little knowledge about the locations of these applications.
Let's say that every day we need to load up the Yahoo web browser, Microsoft Word, and then the calculator that comes with Windows. Instead of doing this by hand, we could write a batch file to do it for us.
First, we'd load up Notepad and type in the following:
We would then save this data into a file named, "mytasks.bat" onto the Desktop for easy access. Each time we double-clicked on this file, the Yahoo website would load up, Microsoft Word would start, and the simple calculator would pop up.
Since we want these programs to load every day, we could create a shortcut to this file and then place the shortcut inside our computer's Start Up folder. That way, these three programs would load every time we turn on the computer. If you wanted these programs to start minimized, you could type the following into a batch file instead:
This will run all three programs as before, however the "/m" parameter will minimize them so that they don't clutter up the desktop.
Other people have found much more creative and effective ways to use batch files, but the important thing is that you know they're a resource you can use to save a few seconds or minutes in performing important tasks. We've come a long way from MS-DOS, but it's still a valuable source of automation that anyone can use with no programming knowledge at all.
Like this article? Automating Things with Batch Files
Senate Minority Leader Chuck Schumer speaks during a press conference on November 3, 2026, in Washington, DC. - Tom Brenner/Getty Images
Chuck Schumer is confident he’ll continue leading Senate Democrats after they captured the chamber’s majority in dramatic fashion on Tuesday. Not all Democrats are so sure.
During a post-election gathering Saturday in Washington, DC, two Senate Democrats — Chris Van Hollen of Maryland and Elissa Slotkin of Michigan — declined to back Schumer for the job, and Slotkin said she would not rule out running herself. A third Senate Democrat who appeared at the conference, Sen. Mark Kelly of Arizona, said he planned to support Schumer but echoed calls for Senate Democrats “to do things differently than we’ve done before.”
“There should be no coronation of the next Democratic leader,” Van Hollen said. “I’ve said very clearly that we need to have a discussion in the Democratic caucus, we need to understand what the Democrats are going to do with this new responsibility and these new powers, and nobody should get a blank check without a full understanding of the caucus as to where we’re going to go.”
Van Hollen said he has urged Democratic colleagues to “withhold commitments” until Schumer outlines his vision. And Slotkin said Democrats should not give Schumer quorum — the minimum attendance required to conduct Senate business — until he answers their concerns.
Schumer remains a heavy favorite to become majority leader. He has no declared opposition and needs to win only majority support from Senate Democrats, whose ranks are poised to grow to at least 54 seats after Tuesday’s elections.
But Saturday’s comments showed how even Democrats’ sweeping midterm victories could not paper over their long-simmering disagreements about who is best to lead them. That debate may be especially elevated among Senate Democrats looking at potentially running for president in 2028, a group that includes Van Hollen, Slotkin and Kelly.
In addition to the reservations among the returning Senate Democrats, several incoming freshmen have vowed not to back Schumer for leader or at least withheld their support for now. Scott Colom, the Democrat in a Senate race in Mississippi that remains too close to call, has also been noncommittal on Schumer, calling for more geographic diversity among party leadership.
“Our caucus is focused on moving forward,” Schumer told the newspaper’s “The Daily” podcast. “Everyone’s very happy with what we all did.”
Several Senate Democrats have already said Schumer has earned his right to return as their leader after the better-than-expected outcomes in Senate races. Kelly added his name to that list Saturday.
“Chuck worked really hard to get this majority, so my plan is to support him,” Kelly told reporters after his appearance at the post-midterms summit, Crooked Con.
Slotkin struck a different tone as she addressed the conference, which booed and jeered at the mention of Schumer’s name throughout the day.
“If he wants to be majority leader, what is your plan for the first 100 days?” she said. “How are you going to do things differently so that Democrats get their sh*t together? If you can’t produce that, I’m not voting for you.”
Asked whether she would run for the top job, Slotkin said it was “an open field, and I think those conversations are happening rapidly.”
“I’m not ruling anything out,” she said.
Van Hollen, for his part, suggested he was unlikely to run, even though at least one incoming freshman — Abdul El-Sayed of Michigan — has said he could support him. Van Hollen told CNN on Saturday that running for majority leader was “not my focus” and that he was instead weighing a 2028 presidential campaign. He said he has not heard “directly” from Schumer since the midterms but expected to speak to him in the coming week.
Slotkin, who has long called for a “new generation of leadership,” said she hopes incoming freshmen follow the example she set in her first House run in 2018. She campaigned promising not to support Nancy Pelosi for House speaker — and followed through when she voted present in the speaker’s election in January 2019.
“These people who just won in tough places, I think, will have a hard time, both as leaders but also just as politicians, going back on their word as their first thing that they do,” she said.
For more CNN news and newsletters create an account at CNN.com
This article originally appeared on CNN at https://www.cnn.com/2026/11/07/politics/senate-democrats-new-majority-leader
Democrat Mary Peltola’s campaign is suing the state of Alaska to obtain access to records for absentee ballots that were rejected by the Alaska Division of Elections, a new court filing shows.
Peltola’s campaign said they previously requested records of the rejected ballots on multiple occasions but were denied access.
“Plaintiff cannot ensure that its voters’ lawful votes were properly counted without knowing whose absentee ballots were rejected or questioned, and why,” the lawsuit reads. “Each hour and each day that Defendants deny Plaintiff the requested records to which it is entitled costs Plaintiff the opportunity to help ensure that qualified voters have their ballots counted.”
Peltola currently leads Sen. Dan Sullivan (R) in the Alaska U.S. Senate race by just over 600 votes, but with approximately 30 percent of the vote still outstanding, according to The Hill's partner Decision Desk HQ (DDHQ). No winner has been projected in the race as of Saturday morning.
The Division responded in a release on Friday, saying voters who have had their ballots rejected have not yet had access to the information, therefore, the campaign should not be able to have access yet either.
“Alaska’s constitution and laws do not require the Division to provide this information in the manner requested by the campaign. Releasing preliminary information in the manner sought by the lawsuit would create additional burdens during ballot processing and could delay the timely counting of votes,” the release said.
The Alaska Senate race has already been the subject of litigation after the Trump administration sued to block certification of the election if Sullivan loses, arguing that the presence of a candidate named Daniel J. Sullivan Jr. could confuse voters. A judge dismissed that lawsuit ahead of Election Day, but the administration vowed to appeal.
The vote count in Alaska will continue for several more days, as ballots in Alaska can arrive up to 15 days after the election if they came from outside the country, so long as they are postmarked by Election Day.
More votes in Alaska do not have to be reported until Nov. 10, but may be reported incrementally before then. Final votes must be reported by Nov. 18.
If no candidate has greater than 50 percent of the vote by that point — no candidate currently does — the state will run an instant runoff using ranked choice voting. The tabulation eliminates the last-place candidate and redistributes their voters’ second, third and fourth-choice preferences. The process repeats until a candidate has a majority.
If Peltola wins the Senate race, it would be the eighth flip for Democrats in the Senate after a strong performance on Tuesday night.
Votes are also still being counted in the Mississippi Senate contest where Democrat Scott Colom leads the incumbent GOP Sen. Cindy Hyde-Smith.
Copyright 2026 Nexstar Media, Inc. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed. For the latest news, weather, sports, and streaming video, head to The Hill.This article originally appeared on The Hill at https://thehill.com/homenews/campaign/6205934-peltola-campaign-alaska-ballot-lawsuit/
Nov 7 (Reuters) - Israel's president on Saturday chose Gadi Eisenkot, Prime Minister Benjamin Netanyahu's strongest rival, to try to form a new government following a deadlocked election that left neither man with a clear path to power.
Netanyahu, Israel's longest-serving leader, is fighting to stay in office after his religious-nationalist coalition lost its majority in an October 27 election but still emerged as the largest bloc in parliament.
Eisenkot, a former military chief, has declined to join forces with Arab parties, whose support would give him a majority of seats in parliament. But Arab leaders, incensed by what they view as the racist policies of Netanyahu and his far-right allies, still nominated Eisenkot to try to form a government first — giving him the most endorsements.
"President Herzog has invited Gadi Eisenkot to the President’s Residence, where he will be tasked with forming the government tomorrow," said the spokesperson of President Isaac Herzog, whose largely ceremonial role involves nominating a candidate to form a coalition after elections.
In a post on X, Eisenkot wrote, "Now is the time to form a national emergency government. I will do everything I can to ensure we are worthy."
EISENKOT FACES LONG-SHOT BID TO FORM GOVERNMENT
Weeks of protracted negotiations are expected to follow Eisenkot's nomination. He has 28 days to try to forge a government, with a possible 14-day extension.
His potential pathways to power include trying to form a minority government with Arab party votes on key issues; forming a coalition with ultra-Orthodox parties that he and his allies have shunned in the past; or forging a unity government with Netanyahu.
Analysts say that all three options are unlikely to take shape. If Eisenkot fails, another candidate can try to form a government and if that candidate fails, parliament can nominate another. There is a deadline for the process of around 100 days. If no one succeeds, another election is held.
Likud won the most seats of any single party with 27 in the 120-seat Knesset, but Netanyahu's wider religious-nationalist coalition garnered only 53 in total, short of a 61-seat majority.
Eisenkot's Yashar party emerged as the second-largest party with 21 seats, while his coalition, spanning four centre-left to right-wing Jewish-led parties, won just 48 seats. Two parties representing Israel's Arab minority won an unprecedented 19 seats.
EISENKOT CRITICAL OF SETTLER VIOLENCE
A son of Moroccan immigrants, Eisenkot, 66, would be the country's first prime minister from Israel's Mizrahi community, Jews who trace their roots to the Middle East and North Africa.
Reserved and media-shy, Eisenkot only entered politics in 2022. He briefly served in Netanyahu's wartime cabinet following Hamas' October 7, 2023, attack on Israel before returning to the opposition.
From opposition, he publicly rebuked Netanyahu over his leadership, including his management of the military campaign in Gaza, and has sworn that he would not serve in government with him.
Eisenkot's public standing is also bound up with the personal price his family has paid since 2023: a son and two nephews were killed fighting in Gaza.
Eisenkot highlighted his security credentials on the campaign trail, citing his "Dahiyeh doctrine" of responding to attacks with disproportionate force, which he deployed as a commander during Israel's 2006 war with Iran-backed Hezbollah in Lebanon.
Eisenkot has criticised settler violence against Palestinians, which has surged since 2023, raising tensions in Israel’s ties with Western states, and he opposes Netanyahu's far-right coalition partners Itamar Ben-Gvir and Bezalel Smotrich, who have both faced sanctions by some Western countries for inciting violence against Palestinians.
(Reporting by Enas Alashray, Menna Alaa El Din and Alexander Cornwell; Editing by Cynthia Osterman and Timothy Heritage)
This article originally appeared on Reuters at https://www.yahoo.com/news/world/articles/israeli-president-picks-gadi-eisenkot-193153373.html