with batch scripting

The PCs at my school always revert to a default state after rebooting ,

and I always have to go through the darn customizing process again : Being sick of that, I figgered that a batch file would be what I need...

Basically, I want to create a batch file, that:

- Changes Screen resolution to 1280x1024, 85Hz

- Removes some shortcuts from desktop

- Adds some shortcuts

- Changes Wallpaper

- installs topdesk and launches it

- launches various apps (that'll be the easy part, I suppose :) )

Edit: - and it would be cool if it could kill a running process

I feel like I should add the fact that I don't have a clue about batch scripting,

which made it hard form me to put some code snippets together that I found through Google... ^^;

Edit2: batch file could be placed on either ipod, external HD, or second internal HD

#389764

I also would like some help with batch scripting..

I need the stuff that prevents the window from being closed (So like if someone closes it, it automatically reopens), and a timer that counts down, and when it hits zero, it logs off the computer.

#389801

flyakite would be your man, as he used to do unattended batch installations.

For changing your screen resolution--you'll need to include this little app in whatever installation, and then read the readme for batch usage instructions:

http://www.entechtaiwan.com/util/multires.shtm (d/l link on the left)

For running processes, use taskkill.exe or pskill.exe (the latter comes with the Windows 2003 Resource Kit--google for it).

You'll also want to look into xcopy and del for adding and removing shortcuts.

Hope this helps!

-NC

#389822

thank you very much NC, i'll look into it :)

Edit:

Woot, it works! Only one Question left, those standard "Internet Explorer" and "Microsoft Outlook" icons on the desktop aren't normal shortcuts ( .lnk ) so I don't know how to remove them via DEL, any ideas?

#389875

Not sure about the Outlook icon, but you can remove the Internet Explorer icon by editing the registry (you can do this with a script, but I believe for security reasons, you'll still have to click a dialog saying it's okay).

Just use the batch script to start this .reg file:

http://www.kellys-korner-xp.com/regs_edits/noieicon.reg

-NC

#390113

Hey NC, do you mean that I should talk to Flyakite about the timer thing?

-Ertai

#390139

Oh, sorry Ertai88, I didn't even see your post!

The flyakite comment was more directed to philou, and I'm not sure if preventing windows from closing is beyond a simple batch script's power. To logoff after a certain time, you can simply use the shutdown command with the -m and -t switches

http://www.microsoft.com/resources/documen...n.mspx?mfr=true

And you should look at the batch files part of this site just for general purposes. http://www.robvanderwoude.com/index.html

Sorry I couldn't be of more help!

-NC

#390217