Windows Scripting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows Scripting

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 ASP Free Forums Sponsor:
  #1  
Old July 31st, 2008, 09:28 PM
venkatesh.1409 venkatesh.1409 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 2 venkatesh.1409 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 25 sec
Reputation Power: 0
Angry General Scripting - Can i know what scripting this is

Hi friends, i am new to write scripting and i have a scripting but don't know what type of scripting this is please if any one know the below scripting, this script i am using for changing the wall paper for the users.

@echo off
CD\
C:
cls

rem *** Determining OS ***

::
cls
echo.


::
ver | find "Windows XP" >nul
if not errorlevel 1 goto XP
::
echo OS version not found...
goto end


rem *** Display OS and goto copyphoto ***

:XP
set filedate=28052008
set oldfiledate=30042008
echo OS is Windows XP ...
if exist %windir%\donephoto%filedate%.txt goto end
if exist %windir%\donephoto%oldfiledate%.txt DEL %windir%\donephoto%oldfiledate%.txt
COPY \\time02\PUBLICNT1\ttphoto\tdcwallpaper.bmp %windir% >>%windir%\donephoto%filedate%.txt
COPY \\time02\PUBLICNT1\ttphoto\finalwallpaperXP.reg c:\
echo File Copy!
goto endXP

:2K
set filedate=28052008
set oldfiledate=30042008
echo OS is Windows 2K ...
if exist %windir%\donephoto%filedate%.txt goto end
if exist %windir%\donephoto%oldfiledate%.txt DEL %windir%\donephoto%oldfiledate%.txt
COPY \\time02\PUBLICNT1\ttphoto\tdcwallpaper.bmp %windir% >>%windir%\donephoto%filedate%.txt
COPY \\time02\PUBLICNT1\ttphoto\finalwallpaper2K.reg c:\
echo File Copy!
goto end2K

:NT
set filedate=28052008
set oldfiledate=30042008
echo OS is Windows NT ...
if exist %windir%\donephoto%filedate%.txt goto end
if exist %windir%\donephoto%oldfiledate%.txt DEL %windir%\donephoto%oldfiledate%.txt
COPY \\time02\PUBLICNT1\ttphoto\tdcwallpaper.bmp %windir% >>%windir%\donephoto%filedate%.txt
COPY \\time02\PUBLICNT1\ttphoto\finalwallpaperNT.reg c:\
echo File Copy!
goto endNT

rem *** Message of Not available for OS ***

:NA
echo The standard wallpaper for your computer is not available at the moment...
echo If you are using Windows 95/98/NT/2K/XP and receive this message, please consult your system admin
goto end


rem *** End ***

:endXP
regedit /s c:\finalwallpaperXP.reg
echo Registry Updated!
echo Done XP!
rem shutdown -l -f -c "Rebooting for latest wallpaper updates."
goto end

:end2K
regedit /s c:\finalwallpaper2K.reg
echo Registry Updated!
echo Done 2K!
goto end

:endNT
regedit /s c:\finalwallpaperNT.reg
echo Registry Updated!
echo Done NT!
pause
goto end

:end
echo.
echo Done!
exit
::

Thanks in Advance.

Reply With Quote
  #2  
Old August 1st, 2008, 02:13 AM
Nilpo's Avatar
Nilpo Nilpo is online now
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,254 Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Days 10 h 25 m 34 sec
Reputation Power: 667
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
This is written in "NT Batch". A simple line-driven "language" used by the Windows command environment. I say language in quotes because it's not actually a language. It's a series of commands that are stored in a text file and executed together, in order as a means of automating a process or sequence of commonly used commands.

It is often (incorrectly) referred to as a language because Microsoft has added some additional commands that allow you to perform some simple logic within batch files.
__________________
Click the image if at any point you don't like my decision.

Scripting problems? Windows questions? Ask the Windows Guru!


Reply With Quote
  #3  
Old August 1st, 2008, 04:03 AM
venkatesh.1409 venkatesh.1409 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 2 venkatesh.1409 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 25 sec
Reputation Power: 0
Tks for the feed back

Ths.. Bro.. can i get any PDF to know this simple program, because now i want to write small scripts to copy data from remote server to my PC. can u tell me which script is easy to learn because i don't know more programming..i need to learn and need to develop.. and if possible can u give me the link to download the PDF.

Thanks in advance.

Reply With Quote
  #4  
Old August 1st, 2008, 11:24 AM
Hangman Hangman is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2008
Posts: 29 Hangman User rank is Sergeant (500 - 2000 Reputation Level)Hangman User rank is Sergeant (500 - 2000 Reputation Level)Hangman User rank is Sergeant (500 - 2000 Reputation Level)Hangman User rank is Sergeant (500 - 2000 Reputation Level)Hangman User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 6 h 56 m 6 sec
Reputation Power: 0
Quote:
Originally Posted by venkatesh.1409
... i want to write small scripts to copy data from remote server to my PC. can u tell me which script is easy to learn because i don't know more programming..i need to learn and need to develop.. and if possible can u give me the link ...


I started out learning DOS batch programming and LiSP coding for autocad. I'm slowly learning more, but I believe you are on the right track. Especially where you want to learn it.
I would start with a simple search on the Web for 'DOS batch commands' & 'MSDOS programming'. This is what I found:
DOS batch commands
DOS batch commands
DOS batch commands
MSDOS programming

There is a lot of info out there about DOS commands and programming it.
I also have some code I would happily share with you if you are interested in learning some of it here.

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Scripting > General Scripting - Can i know what scripting this is


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 6 hosted by Hostway
Stay green...Green IT