Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 7th, 2009, 10:58 AM
CallowAdmin CallowAdmin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Location: CA
Posts: 212 CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 3 h 41 m 27 sec
Reputation Power: 28
Where can I find Dos/Batch scripts

for admin tasks, such as backing up a laptop, assigning network drives at login, etc? I looked on scripts.com and didn't see anything.

Thank you.

Reply With Quote
  #2  
Old June 3rd, 2009, 11:18 AM
tom_cos's Avatar
tom_cos tom_cos is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Location: NJ, USA
Posts: 50 tom_cos User rank is Sergeant Major (2000 - 5000 Reputation Level)tom_cos User rank is Sergeant Major (2000 - 5000 Reputation Level)tom_cos User rank is Sergeant Major (2000 - 5000 Reputation Level)tom_cos User rank is Sergeant Major (2000 - 5000 Reputation Level)tom_cos User rank is Sergeant Major (2000 - 5000 Reputation Level)tom_cos User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 8 h 37 m 3 sec
Reputation Power: 44
Quote:
Originally Posted by CallowAdmin
for admin tasks, such as backing up a laptop, assigning network drives at login, etc? I looked on scripts.com and didn't see anything.

Thank you.


You can 'roll your own'. Here is a backupdb.bat file I wrote to run once a week using the Windows "Scheduled Task Wizard":

Code:
echo off
echo ..
echo ...
echo .. PSP DB Backup Utility
echo .. Created 05.12.29 by T Cosmas
echo .. Updated 01.27.06
echo .. Please wait while backup copies are made.
echo .. This may take a couple of minutes.
echo ...
echo ..

rem Check for backup copies
if NOT exist pspdb2003_1.mdb goto copy1
if NOT exist pspdb2003_2.mdb goto copy2
if NOT exist pspdb2003_3.mdb goto copy3
if NOT exist pspdb2003_4.mdb goto copy4

:rencopy4
del pspdb2003_4.mdb
del pspusers_4.mdw
echo .. deleted old copy

:copy4
ren pspdb2003_3.mdb pspdb2003_4.mdb
ren pspusers_3.mdw pspusers_4.mdw
echo .. renamed old copy 4

:copy3
ren pspdb2003_2.mdb pspdb2003_3.mdb
ren pspusers_2.mdw pspusers_3.mdw
echo .. renamed old copy 3

:copy2
ren pspdb2003_1.mdb pspdb2003_2.mdb
ren pspusers_1.mdw pspusers_2.mdw
echo .. renamed old copy 2

:copy1
copy ..\pspdb2003\pspdb2003.mdb pspdb2003_1.mdb
copy ..\pspdb2003\pspusers.mdw pspusers_1.mdw
echo .. renamed old copy 1

:end
echo Done!


This script allows you to have four (4) backup copies of the files. Of course, this is a very simplistic copy routine. What you may really want to look into is software that'll do incremental backups and syncronization of files so that you always have the latest version on the laptop and in the backup directory as well as the prvious version(s).

As for Drive Mapping, here is a script I found through a search (I would think your LAN software would provide a sample login script to do something similar):

Code:
Rem Batch  File for user John Doe
NET USE Q: \\sbs1\Quickbooks
NET USE S: \\sbs1\SharedCompany
NET USE T: \\sbs1\Access


Hope this is helpful!

Reply With Quote
  #3  
Old June 14th, 2009, 06:05 PM
CallowAdmin CallowAdmin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Location: CA
Posts: 212 CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level)CallowAdmin User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 3 h 41 m 27 sec
Reputation Power: 28
Hey thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Where can I find Dos/Batch scripts


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
Stay green...Green IT