Batch

The ubiquitous operating system, discussion of its (many) flaws, and how to mitigate the risks of those flaws

Re: Batch

Post by beagle on Tue Nov 25, 2008 10:55 am
([msg=15431]see Re: Batch[/msg])

Do you have a good place to start when looking at how to design batch files. I'm new to this whole scene and looking at getting started somewhere, anywhere in fact.


Here is a good resource: http://www.tnd.com/camosun/elex130/dosbatchtutor1.html
And here: http://www.infionline.net/~wtnewton/batch/batguide.html

Also, I found this batch file in a program that makes USB devices bootable. Here it is:

Code: Select all
@echo off
rem This batch file was created by ©2007 PDLA http://pendrivelinux.com
rem SYslinux ©1994-2006 H. Peter Anvin http://syslinux.zytor.com
cls
echo -----------------------------------------------------------------
echo This batch file will prepare drive %~d0 for boot using syslinux!
echo -----------------------------------------------------------------
echo.
echo.
echo --------------------- WARNING!: ---------------------------------
echo.
echo Run this file from your portable USB device ONLY.
echo Running this file from your hard drive may overwrite your current
echo Master Boot Record (MBR) and render your Windows Operating System
echo un-bootable. YOU HAVE BEEN WARNED!
echo.
echo This batch file is offered in hopes that it will be useful and
echo comes with absolutely no warranty. USE AT YOUR OWN RISK!
echo.
echo -----------------------------------------------------------------
echo.
echo.
echo Press any key to make drive %~d0 bootable
echo or close this window to abort...
pause > nul
cls

syslinux\win32\syslinux.exe -ma %~d0
echo.
echo ~~~~~~~~ Congratulations ~~~~~~~
echo.
echo The hidden file ldlinux.sys has been installed
echo Your %~d0 drive should now be bootable.
echo.
echo.
echo Press any key to exit this window!
pause > nul
011000100110010101100001011001110110110001100101
beagle
Poster
Poster
 
Posts: 244
Joined: Wed Jul 02, 2008 2:37 pm
Location: Chico, CA
Blog: View Blog (0)


Re: Batch

Post by anonHacker on Mon Jan 12, 2009 11:29 pm
([msg=16076]see Re: Batch[/msg])

Beagle.

That batch file won't work. Take a wild guess why.
anonHacker
Experienced User
Experienced User
 
Posts: 76
Joined: Sun Jul 27, 2008 10:51 am
Blog: View Blog (0)


Re: Batch

Post by computerdude523 on Fri Jan 16, 2009 1:57 am
([msg=16388]see Re: Batch[/msg])

mutants_r_us_guild wrote:omg... thats funny. I love that song.. its hard to play on Guitar Hero though... well once you go past medium... my pinky just doesn't bend that way. lol


Yeah...I Played It On Freats On Fire On My Vista On Expert And I Finnished It With One Error Away From FAIL....lol :ugeek:
Me: "Just Because You SAY You're A Hacker, Doesn't Really Mean You Are One."
A Noob: "Really?"
Me: "NO, Smart One. Now If You Are One, Prove It."
A Noob: ...
Me: "That's What I Thought."

< computerdude523 >
User avatar
computerdude523
New User
New User
 
Posts: 45
Joined: Wed Jul 09, 2008 10:43 am
Blog: View Blog (0)


Previous

Return to Microsoft Windows

Who is online

Users browsing this forum: No registered users and 0 guests