rwtech 0 Posted April 20, 2005 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. Share this post Link to post
Wilhelmus 1 Posted April 20, 2005 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. Share this post Link to post
theefool 0 Posted April 20, 2005 Urgh! I was so excited to talk about batch file creation. This was a complete let down. Share this post Link to post
Wicked101 0 Posted April 23, 2005 Originally posted by theefool: Quote: Urgh! I was so excited to talk about batch file creation. This was a complete let down. LOL, if it'll make you feel better you can talk to me about it if you want :-) Share this post Link to post
edisonlivica 0 Posted April 27, 2005 use "notepad" as your editor and once your done with the commands, save the file as .bat Share this post Link to post
Exxccessive 0 Posted April 27, 2005 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.... Share this post Link to post
theefool 0 Posted April 27, 2005 When creating batch files I still use edlin...err edit.. Share this post Link to post
Exxccessive 0 Posted April 27, 2005 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 Share this post Link to post
theefool 0 Posted April 27, 2005 Though, I usually, have two cmd prompts open, one has edit the other I use to run the scripts. Share this post Link to post
Wilhelmus 1 Posted April 27, 2005 C:\>echo @echo Hello World! > hello.bat C:\>echo @echo Greetings Planet! >>hello.bat C:\>hello Hello World! Greetings Planet! C:\> Share this post Link to post
theefool 0 Posted April 27, 2005 Hmmm....what about.... copy con hello.bat @echo hello ^Z Share this post Link to post