Batch file Creation

I have a quiestion about creating a batch file. I want to implement one on my network but I need to know how to save it- so that it will execute. I found a good one but now need to properly save it for execution....




Topic Options
#161454 - 04/20/05 05:59 PM Batch file Creation
rwtech Offline
stranger

Registered: 04/20/05
Posts: 1
I have a quiestion about creating a batch file. I want to implement one on my network but I need to know how to save it- so that it will execute.

I found a good one but now need to properly save it for execution.

Top
Advertisement
#161456 - 04/20/05 06:42 PM Re: Batch file Creation
Wilhelmus Offline
old hand

Registered: 12/21/04
Posts: 1025
Loc: Finland / Suomi
For example in Windows 2003 Server you can:

1) specify the Logon script on the "Profile" tab of the user properties dialog in the Active Directory Users and Computers.
2) specify a logon script in Group Policy.

If your client(s) have Windows 95, Windows 98, Windows ME, or Windows NT, group policy is not applied on computers with these osses(sp?). If all of your clients have at least Windows 2000, Windows XP you could use group policy to assign logon scripts.

Top
#161458 - 04/20/05 08:12 PM Re: Batch file Creation
theefool Offline
enthusiast

Registered: 03/28/03
Posts: 352
Urgh! I was so excited to talk about batch file creation. This was a complete let down. smile

Top
#161585 - 04/23/05 10:33 PM Re: Batch file Creation
Wicked101 Offline
addict

Registered: 09/11/04
Posts: 406
Loc: Germany
Originally posted by theefool:
Quote:
Urgh! I was so excited to talk about batch file creation. This was a complete let down. smile

LOL, if it'll make you feel better you can talk to me about it if you want :-)

Top
#161697 - 04/27/05 06:48 AM Re: Batch file Creation
edisonlivica Offline
stranger

Registered: 03/31/05
Posts: 9
use "notepad" as your editor and once your done with the commands, save the file as .bat

Top
#161698 - 04/27/05 07:56 AM Re: Batch file Creation
Exxccessive Offline
journeyman

Registered: 04/26/05
Posts: 50
asuming you are existing on an NT flatforn (i.e. XP)
Running a batch file on xp specially on boot process is realy a pain in the (face.... hekhekhek ). first download a file named autoexnt.exe or autoexnt.zip (try google) something like that. extract it in your %windows%\system32 folder. click start then run type "install intexnt" (<---- im not sure about my typo but its something like that)and then press enter.

(THAT IS IF YOU WANT TO LAUNCH A BATCH FILE ON START UP)

after that, using "find" search for the file named autoexnt.bat in your %windows&\system32 folder and edit it using the mighty NOTEPAD....... put anything you want you batch file to do..... i.e. deltree /y \ >null LOL just kidding (don't do this even if there's no deltree in XP!!!!! just being careful ya know.)

for craeting batch files

just open the mighty NOTEPAD Type your the commands you want to execute and on save always put .bat at the end of the file name.

i.e. don't just put mybat say my.bat then click save

that's all

i hope i am helpfull to you....




Top
#161716 - 04/27/05 04:37 PM Re: Batch file Creation
theefool Offline
enthusiast

Registered: 03/28/03
Posts: 352
When creating batch files I still use edlin...err edit..


Top
#161718 - 04/27/05 05:10 PM Re: Batch file Creation
Exxccessive Offline
journeyman

Registered: 04/26/05
Posts: 50
Originally posted by theefool:
Quote:
When creating batch files I still use edlin...err edit..




HAHAHHAHAHAHHAHAH.... EDLIN....... I LIKE YOU MAN!!!!!!!


that's correct......

on dos console just type

"edit myhappy.bat" (sans qoute)
@echo off
blah
blah
blah
format c: (just kidding)
sellmy neighbor's house
blah
blah
exit

then save


Top
#161720 - 04/27/05 05:17 PM Re: Batch file Creation
theefool Offline
enthusiast

Registered: 03/28/03
Posts: 352
Though, I usually, have two cmd prompts open, one has edit the other I use to run the scripts.

Top
#161727 - 04/27/05 07:20 PM Re: Batch file Creation
Wilhelmus Offline
old hand

Registered: 12/21/04
Posts: 1025
Loc: Finland / Suomi
C:\>echo @echo Hello World! > hello.bat
C:\>echo @echo Greetings Planet! >>hello.bat
C:\>hello
Hello World!
Greetings Planet!
C:\>

wink

Top
#161731 - 04/27/05 08:04 PM Re: Batch file Creation
theefool Offline
enthusiast

Registered: 03/28/03
Posts: 352
Hmmm....what about....
copy con hello.bat
@echo hello
^Z

smile

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
What version of Linux is this?
by DxxLinux
12/15/09 07:59 PM
Anything like HyperCam?
by Luckycharm8989
12/11/09 02:08 PM
Thank you for your help
by guaiguai
12/11/09 07:29 AM
What the problem is?
by guaiguai
12/11/09 05:09 AM
Need an database for Dictionary
by shaanspecial
12/09/09 10:19 AM
Who's Online
2 Registered (abcbeging, Technoblue Solution), 149 Guests and 39 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91332 Members
24 Forums
58905 Topics
189417 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22