Compatible Support Forums: Batch file Creation

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Batch file Creation

#1 User is offline   rwtech 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 20-April 05

Posted 20 April 2005 - 05:59 PM

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.

0

#2 User is offline   Wilhelmus 

  • old hand
  • Group: Members
  • Posts: 1032
  • Joined: 21-December 04
  • LocationFinland

Posted 20 April 2005 - 06:42 PM

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.
0

#3 User is offline   theefool 

  • enthusiast
  • Group: Members
  • Posts: 352
  • Joined: 28-March 03

Posted 20 April 2005 - 08:12 PM

Urgh! I was so excited to talk about batch file creation. This was a complete let down. smile
0

#4 User is offline   Wicked101 

  • addict
  • Group: Members
  • Posts: 406
  • Joined: 11-September 04

Posted 23 April 2005 - 10:33 PM

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 :-)
0

#5 User is offline   edisonlivica 

  • stranger
  • Group: Members
  • Posts: 9
  • Joined: 31-March 05

Posted 27 April 2005 - 06:48 AM

use "notepad" as your editor and once your done with the commands, save the file as .bat
0

#6 User is offline   Exxccessive 

  • journeyman
  • Group: Members
  • Posts: 50
  • Joined: 26-April 05

Posted 27 April 2005 - 07:56 AM

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....




0

#7 User is offline   theefool 

  • enthusiast
  • Group: Members
  • Posts: 352
  • Joined: 28-March 03

Posted 27 April 2005 - 04:37 PM

When creating batch files I still use edlin...err edit..


0

#8 User is offline   Exxccessive 

  • journeyman
  • Group: Members
  • Posts: 50
  • Joined: 26-April 05

Posted 27 April 2005 - 05:10 PM

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


0

#9 User is offline   theefool 

  • enthusiast
  • Group: Members
  • Posts: 352
  • Joined: 28-March 03

Posted 27 April 2005 - 05:17 PM

Though, I usually, have two cmd prompts open, one has edit the other I use to run the scripts.
0

#10 User is offline   Wilhelmus 

  • old hand
  • Group: Members
  • Posts: 1032
  • Joined: 21-December 04
  • LocationFinland

Posted 27 April 2005 - 07:20 PM

C:\>echo @echo Hello World! > hello.bat
C:\>echo @echo Greetings Planet! >>hello.bat
C:\>hello
Hello World!
Greetings Planet!
C:\>

wink
0

#11 User is offline   theefool 

  • enthusiast
  • Group: Members
  • Posts: 352
  • Joined: 28-March 03

Posted 27 April 2005 - 08:04 PM

Hmmm....what about....
copy con hello.bat
@echo hello
^Z

smile
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users