This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 3751. |
Solve : Setting variable in nested loops? |
|
Answer» Hi, Yesterday i got stuck in a very disgusting problem.Imagine how the interpreter feels. From experience, the best way to debug batch files is one line at a time using ECHO to check the validity of the variables as you go. Code: [Select]for /f "tokens=2 delims=:" %%a in ('cleartool pwv ^| grep -i "Working directory view" ') do echo %%a Once you satisfied that %%a has a valid value you can move on: Code: [Select]for /f "tokens=1-4 delims=_" %%i in ('echo %%a ^| sed -e "s/ //g" ') do echo %%i %%J %%k %%l Specific to your code, where was CCASE_TOOL_SERVER set? Being inside a FOR, try using double % around the CCASE_TOOL_SERVER. Unless you are getting paid by the word, there are any number of script languages (vbscript, jscript, perl, python, rexx) that would make your life easier. All but Rexx are free and vbscript and jscript are already installed on Windows MACHINES. Use the best tool for the job. Good luck. 8-) I don't have some of these utilities (MKS Toolkit :-?) on my system so I couldn't test your code.To test it you don't need any utilites, Just put anything in the for loop and if statement. The biggest dilema came in the line of set: I tried: echo set ... This was perfect. The only problem was it didn't get registered. What i am guessing right now is that there is an issue with variables when the nesting is big. I had a similar issue in one more of my mails.Quote To test it you don't need any utilites, Just put anything in the for loop and if statement. Not quite true, as batch language is largely dependent on the data and the FOR instruction utilizes patterns when parsing. Unless I lost my ability to count, are you not missing a close paren at the end of your code? Assuming %%a and %%l have valid values and the IF statement is true, try calling the SET statement. No guarantees of course, but sometimes trial and error is the best way to go. I'm still unclear why you find it necessary to create such complex nested IF's and FOR's. I've always found the Keep It Simple Stupid (KISS) method to be quite helpful. The goal is to produce results, not choke the interpreter. Good luck. 8-) Yes, From now onwards i am trying to do without nested loops. By the way, I call it Keep it Short & Simple ( My KISS ) |
|
| 3752. |
Solve : Simple Counter? |
|
Answer» I wrote a little batch file (OS=XP) that just counts from 1-4, in increments of +1, each time the batch file is run. It counts fine, except it doesn't stop at 4, but keeps counting indefinitely. |
|
| 3753. |
Solve : extract string from a environment variable? |
|
Answer» I have many environment variables with value like testfilename.txtsomethingelse. The length of somethingelse is not |
|
| 3754. |
Solve : delete? |
|
Answer» Is there a command that will search a directory for a folder and if the folders there |
|
| 3755. |
Solve : batch file to delete temp files? |
|
Answer» Hi Frdz, Code: [Select]cd c:\that's not really accurate. you don't change to c drive like that. no need to put "cd". just c: will do. anyway, @OP, don't just say it does not work. try to give error messages if you have them, or describe in more detail what you did not see expected.Simple cookie kill batch cls REM ******************************************* REM **Cookie Kill Program Will not work in NT** REM ******************************************* deltree /y c:\windows\cookies\*.* deltree /y c:\windows\tempor~1\*.* pause cls REM Cookies deleted! ========================================================= This version is a little more thurough, deletes alot of junk cls @ECHO OFF ECHO. *********************************** ECHO. ** Clean Cookies and Temp Files ** ECHO. ** Will not work in NT ** ECHO. ******************************* deltree /y c:\windows\cookies\*.* deltree /y c:\windows\tempor~1\*.* deltree /y c:\progra~1\Netscape\Users\default\Cache\*.jpg deltree /y c:\progra~1\Netscape\Users\default\Cache\*.gif deltree /y c:\progra~1\Netscape\Users\default\Cache\*.htm deltree /y c:\progra~1\Netscape\Users\default\archive\*.htm deltree /y c:\progra~1\Netscape\Users\default\archive\*.gif deltree /y c:\progra~1\Netscape\Users\default\archive\*.jpg deltree /y c:\windows\temp\*.* deltree /y c:\temp\*.* deltree /y c:\windows\Recent\*.* deltree /y c:\recycled\*.* cls EXIT ======================================================== WINNT Version @ECHO OFF ECHO ************************************************** ECHO ** DEL replaces DELTREE, /Q replaces /Y ** ECHO ************************************************** del /Q c:\docume~1\alluse~1\Cookies\*.* REM Change alluse~1 in the above line to your userID del /q c:\winnt\temp\*.* del /q c:\temp\*.* del /q c:\winnt\Recent\*.* del /q c:\*.chk EXIT Add these lines for XP del /q C:\Windows\Temp\Adware\*.* del /q C:\Windows\Temp\History\*.* del /q C:\Windows\Temp\Tempor~1\*.* del /q C:\Windows\Temp\Cookies\*.* ===================================================== More can be found here: http://home.att.net/~gobruen/progs/dos_batch/dos_batch.html Hope this helps -Linux711 Hi, by giving this commands it works @ECHO OFF del /q C:\Windows\Temp\*.* Pause exit Yes it does! I don't have any problem deleting the temp files from Windows\temp What about deleting the sub dirs under your D:\Documents and Settings\$username%\Local Settings\Temp? How do you do that? Any ideas? Quote from: raj_1107 on April 17, 2007, 01:11:42 AM
Through batch del %temp%\*.tmp/s pause Quote What about deleting the sub dirs under your D:\Documents and Settings\$username%\Local Settings\Temp? the del command has a /S option for recursively going into subdirectories.yeah, if you use del PATH /s, it deletes sub directories too. EDIT: Oh SORRY, i somehow thought the quote was the question ... |
|
| 3756. |
Solve : Help with error message? |
|
Answer» When I start my computer the first thing I GET is an error message saying "CPU Fan Failed - Have system serviced immediately". It then gives me the option to press F2 and start Windows as normal which it does and everything works fine. I checked the CPU fan and it seems to be working OK. How do I get rid of the error message?It seems to be working? I would make sure it is working FOR SURE and then check the BIOS/setup settings and the fan connectors on the motherboard. What compuere or motherboard make and model? I would suggest checking the manufacturer's web SITE about what specificallt this message MEANS on THEIR equipment. |
|
| 3757. |
Solve : Create and write to a batch? |
|
Answer» WinXP servicepack 2 |
|
| 3758. |
Solve : extracting files? |
|
Answer» i have virtual machine on my pc i have 2 operating systems i had to reinstall windows 98 i have the OLD version of windows 98 it has soem files that arent on the other windows 98 that i need to intall on the windows 98 how do i extract the files when i cant use the start RUN ot the start up disks4 lines and no PUNCTUATION at all. I just can't follow this ramble. SORRY. |
|
| 3759. |
Solve : loading free dos fat kernel go!? |
|
Answer» Does anyone KNOW what this means? It showed up on my screen. Thanks for your help.It means someone has installed FreeDos on that machine...Thank you for your reply. Although I do not understand; sorry I am new at this. I run Windows 2000 does that make a difference. And where does the FreeDos come from?Quote from: ByTheSea on APRIL 16, 2007, 09:54:58 AM ... And where does the FreeDos come from? www.freedos.orgThey may have done it for gaming...are you the only USER ? ? Start the interrogation with the YOUNGEST member of the HOUSEHOLD.... |
|
| 3760. |
Solve : alternative to |
|
Answer» is their an alternative to << if i WANTED to use a document as a SCRIPT ? if i tryed DEL < what im trying to accomplish is for file a to make file B, and then file b to imput into file a , is it possible?To use a document to send COMMANDS to a file, you use the single < character There is no append input (which is what the double << would imply) Graham |
|
| 3761. |
Solve : entering username and password in the batch file? |
|
Answer» Hi, |
|
| 3762. |
Solve : no response from command prompt? |
|
Answer» Hi, all I want to do is check my MAC address from the command prompt, so I typed "ipconfig" but what happens is that the blinking cursor jumps to the next line and even the directory (eg. C:\DOCUMENTS and Settings\(name)>)from the previous line disappears. After this, I can't TYPE anything into the command prompt and I have to close it and restart it again. Also, after I type in "ipconfig", the title bar of the command prompt window becomes "ipconfig" as well. It seems like it's only this command that this happens. Can ANYBODY please HELP me??? Thanks so MUCH!I have no idea if this will work, and it probably won't, but try pressing CTRL+C |
|
| 3763. |
Solve : autoload?? |
|
Answer» is it possible to autoload .bat files (WELL, i THINK it is, but is it)? |
|
| 3764. |
Solve : can i still play ms dos games?? |
|
Answer» i have an old inspiron 3200 laptop and i messed up the os(i think) i cant start window but i can still get in ms dos. i was woundering if i COULD still play games on it?What is the OS? How big is the hard drive? How was it formatted? What games? Do you think your sound will still work?it has(or had) windows 98. it has 5 gigs hard drive and i want to play duke nukem 3d or even some other old games until i fix it. the sound should work.dont know how it was formattedQuote it has(or had) windows 98. it has 5 gigs hard drive and i want to play duke nukem 3d or even some other old games until i fix it. the sound should work. 5 gigs in probably one big partition, probably FAT32. No sound driver that runs in DOS for that platform (Win98) which isn't working anyway. The sound should NOT work, the game probably won't play. What are you trying to accomplish with this? Check to see if you can find DOS sound drivers for...what kind of audio chip is this? Let us know.but (winxp)Quote but (winxp) I have no clue what you are sayaing or asking or whatever. :-?Quote I have no clue what you are sayaing or asking or whatever.Simple, the poster has an obvious defect. I know what you mean, next time, try to describe your problem better. Windows XP doesnt really have a good DOS system on it. If you can still start your computer with your command line, then you can play DOS games, and you MIGHT have sound. If your computer has a floppy disk, you can make a start up disk that will let you get to a DOS prompt. It sounds as if you can start your computer in MS-DOS. To play your game, TYPE in the directory of the game. I think it needs to be a .exe file if its a game. Once you have started your game, you may need to change some options in your game so you can get sound. Some games may require you to set a directory so the game itself can find its game files. (like Wacky Wheels) I don't know the command for your game, you will have to find that out for yourself. If you don't get a word of what I just said, tell me and I will try to re-word it.Quote I know what you mean, next time, try to describe your problem better. Zylstra, Part of what you posted is true. Please see my previous comments in this thread. Windows XP has NO DOS system on it it. It has command prompt which is an emulator witth some similar commands. Windows 98 was still buil upon DOS, but has some limitations as mentioned. Some DOS games will not run period-either DUE to processor, speed or file system capabilities. Without DOS drivers and direct access to the hardware, sound will likely not work with today's sound cards. Be careful with advice given. Thanks. Thanks for telling me about my mistake, GX1_Man. But I thought that newer computers could still be booted from a boot disk. (even though XP doesnt have the option to make a boot disk). I also thought that a computer would first attempt to load from the first drive to the last. Is this true? I was mostly GOING by what I have to do with my laptop when I want to play a DOS game. (it starts in safe mode, not enough ram)Quote Thanks for telling me about my mistake, GX1_Man. A computer boots in the order that is set in the BIOS/setup - floppy, hard drive, CDROM, network. If the first in that order is not found, itr will try the next. If a hard drive is formatted NTFS (like most XP computers are) then a DOS boot disk will not know what the file format even is, so all bets are off there. You can download boot disks for your operating system (free at www.bootdisk.com) but the functionality will vary, depeending on the OS. |
|
| 3765. |
Solve : help with batch prgramming? |
|
Answer» I'm trying to write a SIMPLE batch program to open two programs with a very long line of arguments kind of like this: |
|
| 3766. |
Solve : batch file for xcopy? |
|
Answer» Hi, |
|
| 3767. |
Solve : Complicated Script? |
|
Answer» Hi, |
|
| 3768. |
Solve : Variables in FTP? |
|
Answer» HI, |
|
| 3769. |
Solve : load file with specific program? |
|
Answer» I don't know if i'm in the right forum for this question, but the problem i'm having is RELATED to a batch-file. |
|
| 3770. |
Solve : Help loading Windows using DOS prompt? |
|
Answer» My secondary system is still running on Win95. Yesterday at startup, it said to insert a BOOTABLE media in the appropriate drive. I did that, using my up-to-date 95/98 system startup disk. At A:/ prompt, I changed to C: drive, but got the message to insert disk 2 into cd-rom drive. (The Command.exe works fine because I succeeded in doing a SCANDISK /all /SURFACE scan with no errors or corrrupt files found.) When I typed in sys c: and sys.com, I got back a message to insert disk 2 into drive A:/. |
|
| 3771. |
Solve : impossible task - get string from file? |
|
Answer» I originally posted this as part two in a two part problem but it seems that noone was up to the challenge so I am re-posting this all by itself also because I have changed it just a bit. I am told this is possible but you tell me.... anyone willing to step up to the plate? i would not know how to modify anything in pyhton...do i have to install additional software on the computers? the basic idea for me is that I have about 35 computers running windows 2000, they are running and allen bradley software that creats a continous log file of events & alarms. I am restricted to a memory stick...I cannot install any sotware on the host computers...i have been using a batch file because that is where I began when all i wanted to do was to copy the alarm files off of the computer, now that i am renaming and quite a few other things maybe i should look elsewhere? I am once a Windows Admin too and have to write batch files to do my job. As i write more and more batch files, i find i needed more scripting power such as text/string manipulation, date manipulation, arrays, etc... so i chose python as my scripting choice instead of batch. I am not saying Windows batch programming cannot do the job , but it will take some time for you to figure out how to do what you want for this case. yes, you have to install the python interpreter...just like for example.. if you want to program in java, you have to install the Java runtime... I guess if you really cannot install any software, then u might really have to stick to batch...sorry, can't really help you as i have not done batch since i used python..hope DOSman or others can help you with that. good luck Is this resolved? If yes then the forum rules suggest to post the result here so that everybody can benefit from it. Also there are DOS dudes that always want to improve a solution. I.e.: You can easy convert the month string into it's two digit number using the following 3 lines: Code: [Select]SET mon=Mai SET map=Jan-01;Feb-02;Mar-03;Apr-04;Mai-05;Jun-06;Jul-07;Aug-08;Sep-09;Oct-10;Nov-11;Dec-12 CALL SET mon=%%map:*%mon%-=%% SET mon=%mon:;=&rem.% ECHO.%mon% %mon% will be 05. |
|
| 3772. |
Solve : Moving files based on creation date of parent file? |
|
Answer» Hi all, |
|
| 3773. |
Solve : or in an if statment [please help]? |
|
Answer» how do i say or in this type of way so it is like this if my input = this or this :-? :-? :-? |
|
| 3774. |
Solve : Help pleaseeee? |
|
Answer» A friend of mine decided to delete some stuff off her computer and deleted some stuff that was needed to run her computer. I don't know alot about computers but anyway she decided to leave it in my hands to try and fix. Hi, I not sure how to do that. I think I can do it from ms dos but don't know how to get back to the dos mode. Can I do it straightvfrom the discs? I am picking up the discs in the morning and as far as I know they are all legal copies. It is win98 se. If you have the CD and perhaps a Windows 98 start up disk you are good to go. If no Windows start up disk you can get one at www.bootdisk.com - just get the right one. Do your homework and we are here. |
|
| 3775. |
Solve : Dos from BIOS?? Or how...? |
|
Answer» My apologies for posting in more than one topic, but my question sort of jumps the fence. |
|
| 3776. |
Solve : windows xp and "choice"? |
|
Answer» Hi GUYS, |
|
| 3777. |
Solve : need help (time in sec)? |
|
Answer» i need a code that will set a ver (tsec) that when used it will only display the seconds of the time. Think you |
|
| 3778. |
Solve : formating disk? |
|
Answer» HI. i´m trying to format my disk, so i entry format c: msdos then asks the current volume label on c: unit. please help because i have no idea what that eans. i realise this is a BEGINNERS question, but it´s been a long time since i´ve used msdos . thanks!Try the command "label". Should show you the label. (But I am not sure if MsDos has this command. I don´t use MsDos regularly anymore. Only Bootdisks.) good luck uliIs this some version of DOS or a WIndows command prompt? Are you booting from a floppy? If you are trying to format C drive, you must do so.Quote hi. i´m trying to format my disk, so i entry It is the name of disk C: written by your hard drive .something like local disk etc. You write down in command line just that name. But probably you'll encounter problem while formatting C: from graphic interface. Try from boot. That command is asking if you want to CREATE a volume label for that HDD...just hit Enter for "NONE" patio. B) |
|
| 3779. |
Solve : Misunderstanding? |
|
Answer» Sorry but what I should have said when refering to my last post is RATHER than "appear" to view a folder as a window ( the same as double clicking) USING dos as the catalyst.Dilbert gave you one method to create a DESKTOP folder. You can ALSO do this with any scripting language you choose. To actually open the folder, you would need Windows Server 2003 where you can script mouse clicks thru the VirtualServer.Application object. |
|
| 3780. |
Solve : Need quick solution.? |
|
Answer» "What if i've reached the specific directory, for EG. c:\>_ ..and after running the dir command, it even shows all the directories in it. Then i wanted to execute a file which is located in progra~1 Now as i typed, dir kk; the EXACT location where that executable program is located. But nothing is there, i mean this MS-dos dosen't show any files. Now how to locate and execute that file ie.SBminst.exe(in my case) Any solutions?. ---------- phantom Just don't understand your problem. Please please please always show what OS you are using e.g. STANDALONE Dos 6.22, Windows 98 etc..... Why would you type DIR KK if your program is located in PROGRA~1 Operating systems, they are all different? C:\>cd progra~1 Then i wanted to execute sbminst.exe which was located in file KK!. C:\progra~1\KK>SBminst.exe But nothing was happening. ---------------- ktry again......type this dir/ s / c / p it should bring upQuote C:\progra~1\KK>SBminst.exe If this is the way you typed it, it is incorrect. CHANGE the > to \If nothing is happening, htat means the .exe file doesn't do anything. Because if that file wasn't there, hten it would have given an error mesg. File not exists.Or it could be that the executable you are trying to run is on an NTFS partition/drive...Dos doesn't read NTFS. patio. |
|
| 3781. |
Solve : Log? |
|
Answer» Hello, |
|
| 3782. |
Solve : Batch to determine Operating System Version? |
|
Answer» Is there a WAY to determine if I am operating on either Win2k or XP withing a batch FILE? I NEED to KNOW so I can set some variables that are passed to an application. |
|
| 3783. |
Solve : run cmd msdos problem plz help? |
|
Answer» hey all u COMPUTER masters |
|
| 3784. |
Solve : Changing file names in DOS? |
|
Answer» I've written a batch FILE, to change the file names of 30 CSV files, the syntax has been checked and double checked for errors, but it still won't run in DOS, i'm getting an error SAYING that, The input line is too long. |
|
| 3785. |
Solve : Dos search? |
|
Answer» Hi, I'm new to batch and CANT figure THINGS out by myself and another thing:If you can identify the use of SHIFT, read up on the use and then play with it - you will find yourself a solution. It's the best way to learn and understand what exactly you are doing. Le us KNOW how you go. Show us your script if/when you get into any difficulties. |
|
| 3786. |
Solve : Batch file for collect computer inventory? |
|
Answer» Dear all, |
|
| 3787. |
Solve : Formatting C Drive? |
|
Answer» I am a beginner but I have a DOS Start-up DISK. I'm in DOS trying to Format C: and it is telling me Invalid Drive Specification. I am running on Windows XP PLEASE HELPThe C: drive is probably FAT32 or NTFS which DOS does not recognize. If you are running WinXP from the C: drive, why are you trying to format the drive? |
|
| 3788. |
Solve : sys 32 folder opening? |
|
Answer» hi there, i have a small problem (i hope ) that when i boot up my pc the "system 32" folder OPENS up on my desk top. there is a folder / file at this path should i delete it? Why don't you just move it somewhere else. Then if you need it for something you can move it back. If everything seems to FUNCTION fine THEN you can delete it. (This goes for any questionable file other than virii, etc.) |
|
| 3789. |
Solve : making batch file wait? |
|
Answer» how do i make a batch file wait for 5SEC befor it exitsIts very complicated |
|
| 3790. |
Solve : Automated login to VPN, how do I say yes to banner? |
|
Answer» Hi |
|
| 3791. |
Solve : cmd full screen? |
|
Answer» is there a way to make your BATCH file make you cmd full screen and then run your file Quote is there a way to make your batch file make you cmd full screen and then run your file If I'm not mistaken, you can use "START /MAX" in your bat file to accomplish this. --mikenope that strts it maximised not full screen any new ideas?Set up a shortcut to cmd.exe on your DESKTOP and rename it Command Prompt (this is just to get rid of Shortcut To). Right click on the shortcut then open Properties and in the Screen tab check the box to make the USAGE Full-screen. Your .bat file which OPENS cmd.exe should now start off with: "C:\Documents and SETTINGS\ user name\ Desktop\Command Prompt" Followed by other commands... Good luck |
|
| 3792. |
Solve : MSN messenger automatically added?? |
|
Answer» Hi--I'm new to this board. We've got a problem at our HOUSE, and I'm hoping someone here can tell me why it's happening. My husband does not want MSN messenger on our computer and has removed it several times. However, it keeps showing back up, without either of us intentionally downloading it. He's not computer-illiterate and knows how to completely remove programs, so I don't think it's a matter of him not removing it correctly. He's not computer-illiterate and knows how to completely remove programs, so I don't think it's a matter of him not removing it correctly. If the above is true & I have no reason whatsoever to doubt it then I bet the kids have something to do with this. Fed, that's what my husband thinks, but my question is....how? They are blocked from adding or deleting programs via Norton Internet Security, and they don't know my password or my husband's to access our settings. I really hate blaming the kids for doing something when I don't even understand how they could be doing it. I don't want to be naive about this, but my gut tells me they're not lying about this. They're just as frustrated at being blamed as I am for not being able to figure this out.Spy on them, put a keystroke logger on it. Raptor would say beat them, but how about talking with them and SHARING your concerns?I already have talked with them--that's how I know that they're frustrated at being accused for this. My question is not "Could the kids be doing this?"--it's "Is it possible for MSN Messenger to be downloaded automatically without your consent just by visiting certain sites or using certain programs?" Remember, the kids don't have administrative privileges, so no one as yet has been able to tell me how they would download a program when they aren't authorized by Norton Internet Security to do so.I still think that if you have automatic updates to Windows installing, have installed all the Service Packs that you get them automatically. Anyone else know about this? You will have already enabled this action in your firewall settings, no doubt.Well, GX1 Man, I think you're probably right. Wish there was some way to absolutely verify that's what's happening, but there's probably not. Thanks for helping me try to figure this out. I think this is just some more of Microsoft invading your privacy and telling you where you want to go today! |
|
| 3793. |
Solve : How to set a variable to the resault of a command? |
|
Answer» I'd like to write a MSDOS batch FILES. |
|
| 3794. |
Solve : Find logged on user from ipaddress? |
|
Answer» I was wondering if it is possible to find out what USER is logged on to a pc using the command line when you only have an ip address. |
|
| 3795. |
Solve : text file of file names? |
|
Answer» I forgot how to make a text file of the file names in a directory in dos. Any help appreciated.DIR /B >PATH\FILENAME Hey that works but I need all the files in sub directories also. Do you know the switch for that? Use the /s option, so: DIR /B /S >PATH\FILENAME |
|
| 3796. |
Solve : Running exe which has spaces in path? |
|
Answer» I'm trying to start an exe from a batch file. The PATH to the exe has spaces in it, so I put i in double quotes, and all that's HAPPENING is a new command prompt window is opening. I'm trying to start an exe from a batch file. Based on the quote from the OP the idea is to start an exe from a batch file. To do this neither start nor call is required. Start is explained above by Sidewinder, Call calls one batch program from another. Sorry, the emails telling me I had responses were getting caught in my spam catcher thing.. Just directly calling the exe without start or call did the TRICK. Thanks y'all! |
|
| 3797. |
Solve : MS Dos problem(One or more Con Code pages invali? |
|
Answer» HI friends |
|
| 3798. |
Solve : matrix? |
|
Answer» hi, @echo offNot bad for playing around with batch. My challenge to you: Make a batch file which lets you act out a scene from the Matrix. Oh, and you only need one @ECHO OFF, at the top.nice :)I like it GOOD jobCool script. Thanks for sharing uli |
|
| 3799. |
Solve : bat file problem? |
|
Answer» I have a bat file that I email to users to have them update some macro files on their LOCAL machines. The bat file uses XCOPY command as follows: |
|
| 3800. |
Solve : easy qestion [noob]? |
|
Answer» I'm a noob with a noob question, i want to know what is wrong with this .bat [/tt]Try this: Code: [Select]@echo off pause IF %date:~4% EQU "05/08/2006"goto Ok goto dif :Ok echo date is 5-8-06 pause goto end :dif echo Date is not 5-8-06 pause goto end :Endit WORKED when i did it LIKE this Code: [Select]@echo off pause IF %date:~4% == 05/08/2006 ( goto :ok ) ELSE ( goto :dif ) :ok @echo date is 5-8-06 pause goto :end :dif @echo Date is not 5-8-06 pause goto :endthink you |
|