Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-17-2005, 04:56 AM   #1
Golden Master
 
ArrizX's Avatar
 
Join Date: Apr 2005
Posts: 16,073
Send a message via MSN to ArrizX
Default Batch files?

I dont understand these. First.. what are they for? As far as i kno, they are basicly made to be used as a shortcut, because it links to the program that you try and loop or something. And you type what to do in notepad. But from there, i dont understnad how to turn it into a batch file..

i kno these can be used for hacking. so if you honestly think i wana hack, go head and lock it. but im just wondering...
__________________

__________________
. ()()()()
./l ,[_\_\ ],
l---L – ()lllllll()-
()_) ()_)--o-)_)
ArrizX is offline   Reply With Quote
Old 12-17-2005, 05:08 AM   #2
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: Batch files?

bath files can't really be used for hacking...

batch files are used for performing a batch of job automatically...

for instance, if you wanted to back up a lot of files

Code:
del d:\backup\*.* /y
copy c:\work\*.* d:\work\
dir d:\backup >> d:\backup\index.txt
now instead of having to type three lines at the command prompt the user only has to type one...

batch files hark back from the days of DOS when just about everything was done with a command line, like launching programs etc... so it made sense that if you wanted to do something that'd take a few lines of typing to do... that you save all the work once and then you just have a single word to do it...

you can also do things like update settings an run tests,
at the place I worked previously I wrote batch file (well technically is was a bash script but they are basically the same) that altered the dates and ran programs, alterd data in a sql database and then started all over again in a masive loop,
it allowed for what could have been months of testing if it all had to be done by hand to be completed ni a half hour...

that's the point of batch files.
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 12-17-2005, 05:25 AM   #3
Golden Master
 
ArrizX's Avatar
 
Join Date: Apr 2005
Posts: 16,073
Send a message via MSN to ArrizX
Default Re: Batch files?

Ok, so for making updats and such. Well, is there a commend line for an update to start as windows starts, or right before windows is shutdown? because that would make a few things faster for me.
__________________
. ()()()()
./l ,[_\_\ ],
l---L – ()lllllll()-
()_) ()_)--o-)_)
ArrizX is offline   Reply With Quote
Old 12-17-2005, 05:30 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: Batch files?

you can put startup scripts either in the registry, or in the startup folder.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 12-17-2005, 05:38 AM   #5
Golden Master
 
ArrizX's Avatar
 
Join Date: Apr 2005
Posts: 16,073
Send a message via MSN to ArrizX
Default Re: Batch files?

Do you know a start up scrip?
And it would look somewhat like this:
C:\\documents and settings\startupscrip\program update\loop?

or something to that extent?
__________________
. ()()()()
./l ,[_\_\ ],
l---L – ()lllllll()-
()_) ()_)--o-)_)
ArrizX is offline   Reply With Quote
Old 12-17-2005, 07:24 AM   #6
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,004
Default Re: Batch files?

no the startup folder is
C:\Documents and Settings\All Users\Start Menu\Programs\Startup (for all users)
or
C:\Documents and Settings\[username]\Start Menu\Programs\Startup (for named users)

you can just put the batch file in here and it'll start each time you logon/startup
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting 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 Off



All times are GMT -5. The time now is 09:38 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0