|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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! |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Quote:
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. ![]() |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > General Scripting - Can i know what scripting this is |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|