Windows command prompt: IF command Bug

Hello.

I wrote a batch file to use with hardware third info program used to check the temperature of the processor, but while I was writing, I found a bug with the IF command. Here are some examples:

C:\Users\CreeperGabe\AppData\Local>if ' 89,0' LSS '180.0 ' echo Yes.

C:\Users\CreeperGabe\AppData\Local>if ' 128.0 ' LSS '180.0 ' echo Yes.

Yes

C:\Users\CreeperGabe\AppData\Local >

-------------------------------------------------------------------------------

C:\Users\CreeperGabe\AppData\Local>if ' 89,0' GEQ "180.0 ' echo Yes.

Yes

C:\Users\CreeperGabe\AppData\Local>if ' 128.0' GEQ "180.0 ' echo Yes.

C:\Users\CreeperGabe\AppData\Local >

I tried to work around this problem, several times, but still fail. Here is my batch file:

REM If '%1' LEQ "99.9 ' () '.
GoTo normal REM
REM) other)
' if '%1' LSS '180.0 ' () '.
"goto normal
')
If "%1" GEQ "100.0")
If '%1' LSS '180.0 ' () '.
GoTo normal
) (other)
Goto alert
)
)
 
: normal
choice/c QZ/CS/n/t/d: 3 Q/m 'system's normal % 1of... »
output

: alert
title WARNING!
echo system is overheating to % 1of! Turn the notebook or tilt it upward, from left to right, then press a button.
pause > null

It is still not done. Is there a fix available for that I can install, or anything that will work? It's really 'bug' ging me. I'd use QuickBasic for MS-DOS 7.1, but I am running an x 64-based system therefore, I can't.

CG

Scripting is beyond the scope of this site and should be asked on the Technet site.

http://social.technet.Microsoft.com/forums/en-us/home

Tags: Windows

Similar Questions

  • Window command prompt of the blackBerry keeps opening with link software

    I am running Windows 7 Home Premium - 64-bit. After link was last updated, I started to see an opening for a flash with what seems to be a running BACK in a window of the window command prompt.  I have tried several techniques to eliminate this disabling including startup commands. After a service at the local computer store, we thought we had it licked. First time I plugged my phone - nothing. The computer does not recognize it and I opened the link - this is the boring window was popping up again. I completely removed the link and voila - the window has passed. I've never had this with previous versions of link. Any suggestions?

    Hello Bthomoson

    Tried to install link blackberry, then proceeds to reboot the PC and product to check if your problem still shows the persistence...

    This is the latest version of Blackberry link for Windows

    https://swdownloads.BlackBerry.com/downloads/contactFormPreload.do?code=A8BAA56554F96369AB93E4F3BB06...

    Kind regards...

    Bravo * don't forget to give to these people who help and advise you about your questions * Can
    Accept as Solution to * comment *.

    @gutijose14

  • Error "the device is not ready" to the Windows command prompt when you access a key USB from VMware

    The host and guest are running Win 7.  Version of VMware is 11.1.3.

    The guest computer, Windows Explorer displays the USB and I can open its files, etc.

    However, when I use the Windows command prompt to access the USB of the client, I get error "the device is not ready".

    In order to get the guest system memory image, the application must be run from the USB as an administrator.

    Help, please!  Thank you!!

    I already found the answer.  Win 7 had not installed USB 3.0 controllers.  I downloaded several executables from Intel and Lenovo sites, but they does not work because the system only has not meet the specifications, etc..  Then I discovered that a USB 2.0 stick had any problems.  So, I use 2.0 for this virtual machine.  Thank you!

  • Create an executable by mathscript or from the Windows command window

    Hello

    I have a lot of screws that must be built into executables. So, I think to write a script to save time.

    Windows MathScript looks a lot like the command window in MATLAB, so I wonder if there is a way to create executable files using mathscript?

    Or is it possible to build from the windows command window?

    Thanks for your reply and have a nice day.

    Kind regards

    Yan

    You can use the tools in the palette of constructor calls write a LabVIEW program to automate the construction of applications.

    (Somehow I don't understand not what you want. Building is usually negligible compared to write the program or the configuration of the build).

  • an unknown windows command

    a long time, I discovered a windows command I can't remember, can you help me understand what it was?

    what the command was once you run, a window will popup and ask for a directory, once you enter a directory, the program made a sort of Setup for others to install the files in the directory on his computer. It was useful, what the command would be - this? I'm looking for some time now.

    Thanks to who he is.

    The program was a wizard to make a self-extracting exe. If you open the immediate window, type lexpress.exe is the way that you access. Unfortunately is no longer a part of windows 7.

  • Carolina sign, but continue to get the error 'Windows command summary page is not currently available. Please try again later. »

    I want to sign Carolina but now get the error 'Windows command summary page is not currently available. Please try again later. »

    Inder PreetSingh Hi,

    Thank you for writing to Microsoft Communities.

    If you experience this problem with the order summary page and billing issue, please contact a customer support agent to:

    http://www.microsoftstore.com/store/msstore/HTML/pbPage.Help_Site_Contact_Us

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.

  • Run a Windows command on all virtual machines

    Using PowerCLI, is it possible to run a Windows command on all virtual machines?  I would like to hiberbation disabled on all my servers as it is unnecessary and take up disk space.  Running powercfg-h off will do, but I really want to do it on all 200 of my VM.

    I can't seem to find the option in group policy, so I was hoping that this could be an option.

    The above posts are excellent resolutions. Here is another possible approach.

    You can do this with a Powershell script. Something like this should work:

    1. The list of virtual machines:

    SE connect-ViServer here VCenter server name

    $vms = get - VM

    1. If you have installed Powershell and PSRemoting enabled on each virtual machine, run the following:

    $vms | foreach-object {Invoke-Command - ComputerName $_.} Name - ScriptBlock {powercfg - h}

    1. If you have not installed Powershell and PSRemoting on each virtual machine, use WMI:

    foreach ($vm to $vms)

    {

    $vmName = $vm. Name

    (\[WMIClass\] ")
    (' $vmName\ROOT\CIMV2: Win32_Process "). Create ("cmd /c powercfg - h)

    }

    You should probably use the WMI method since it is unlikely that all of your virtual machines have Powershell installed and configured for remote access.

  • Using windows command prompt that I use Linux terminal

    Hello

    I am beginner in windows and Linux. But even in being a beginner in Linux, I'm fascinated at how I could learn about IT and take control of my computer by using the command line.

    Recently, I worked in windows machines facilities for a program of validation and verification of certain network configurations. Part of it, I did it by command line, but there were things that I could not. It was to get information on certain configurations of the system. I don't remember exactly what it was, but my supervisor showed me a way to GUI to do. But my experience tells me that this command line is faster, easier and can be automated.

    The goal of this post is to ask the name of a book that will put me in the path of sitting in front of a windows machine, open the command prompt and do some work that I do.

    Could someone give me some advice? For now, thank you!

    PS: Microsoft could make an option by default in the command prompt and the VI editor.

    You can learn a bit watching here, without the need to purchase whatever it is--> https://technet.microsoft.com/en-us/library/cc754340.aspx?f=255&MSPPError=-2147217396

    This page explains how to read the entries on the above site: https://technet.microsoft.com/en-us/library/cc771080.aspx?f=255&MSPPError=-2147217396

    Note that not all of the commands listed are available in all versions of Windows.  If you enter any command in a command prompt window, followed by a /? you will get an explanation similar to that contained in the reference site of the command line.

    If you expand the links to the left (on the first site above), you will find a range of reference material, which most unfortunately is not applicable to public versions of Windows (for example, Windows 7).

  • Download the file to the windows command prompt 7 by ftp

    Hello

    I have a question about downloading files via FTP when I used the command prompt in Windows 7. Here is the example of the FTP address.

    Download file: GSE48865_RAW.tar

    FTP address: ftp://ftp.ncbi.nlm... /GSE48865/GSE48865_RAW.tar

    I know that I can type the address in Internet Explorer to download files, but it is very slow. Is there a method to download a large file via FTP in command prompt, or do I have to install any software to connect FTP server...?

    I tried this

    C:\MyFolder > ftp://ftp.ncbi.nlm... /GSE48865/GSE48865_RAW.tar

    or other methods, but nothing worked. Could you help me?

    Thanks, René

    Hi, Maud.

    This question is better supported by the MSDN support. I suggest you ask your question in the link for the best support below:

    https://msdn.Microsoft.com

    See also the link below:

    https://msdn.Microsoft.com/en-us/library/ms229711 (v = vs. 110) .aspx

    Hope this information is useful.

    Thank you.

  • That's why when I type ipconfig/flushdns in windows command prompt, it shows the requested operation requires a rise?

    Why when I type ipconfig/flushdns in windows works it shows that the requested operation requires a rise?

    Because you must run the command prompt with administrator for most active IPCONFIG commands to work correctly.  Just because your account is that an administrator account does not give appropriate rights as it did in XP.  Passive commands such as interfaces to display work correctly with a normal account, but commands like release, renewal and flushdns require that you run as administrator command prompt.

  • Please, be it a while I worked with oracle, but I need to develop my self in PL/SQL. But I'm a challenge to navigate from SQL to the windows command prompt 'diary of the oracle@oel6 '. I often do that before Linux but I don't even know

    Please help

    Janet Oluwadunsin wrote:

    Thanks Steve, I appreciate your correction.

    I want to start the listener from the command prompt, I have connected successfully to sql plus, but I don't remember how I'll get my way to

    [oracle@oel6 journal] $

    at startup my interlocutor.

    I hope this helps

    And just to clarify my and other previous posts... you do NOT get to a command prompt and start your receiver from sqlplus.  sqlplus is a command-line that connects to a database and provides a user interface to the question of the sql to the database statements.  lsncrctl is another command line utility, used to send commands to the listener.  lsnrctl and sqlplus are two completely separate and distinct, all tools two started from the command line of the operating system, that have nothing to do with the other.  Neither one is a kind of 'gateway' to the other.

  • order TCP/IP ping error and windows command processor errors pop up on my screen.

    I met errors popping up on my screen.

    1 tcp/ip ping command error

    2 windows shell

    any ideas?

    Hi noahn,

    Method 1

    It is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you configure the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    1. Click Start , and then click run.
    2. Type msconfig , and then click OK.
      The System Configuration utility dialog box appears.
    3. Click the general tab, click Normal Startup - load all device drivers and services , and then click OK.
    4. When you are prompted, click restart to restart the computer.

    Method 2

    I also suggest that you run a virus on the computer scan and check if it helps.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx 

    You can also use Microsoft Security databases to scan your computer

    http://www.Microsoft.com/security/PC-security/MSE.aspx

  • WAIK command line vs normal Windows command line

    Is there a difference between the normal command line installed with Windows and installed with Windows AIK command line? A list of 'aid' illustrates the same commands.

    Hi LyleZoerman,

    Thanks for posting in the Microsoft Community. As this question is related to the command prompt and the WAIK, I suggest you to post the question in this forum for help.

    http://social.technet.Microsoft.com/forums/en-GB/w7itproinstall/threads

    Hope this information helps. If you have any other questions feel free to respond and we would be happy to help.

  • Firefox-new-window command line option does not as it should.

    When using
    Firefox-new-window "http://www.ebay.com/" "http://store.steampowered.com/'"https://mail.google.com/mail/u/0/#inbox".

    command-line or batch file, it does not open 3 windows with each of the links, it opens 2 and in one of them, I'll take 2 tablets!

    Is this normal behavior? How can I open 3 individual windows?

    Hello, use this:

    firefox.exe -new-window "http://www.ebay.com/" -new-window "http://store.steampowered.com/" -new-window "https://mail.google.com/mail/u/0/#inbox"
    
  • From guest operating system in multiple windows command line

    Hello

    I'm trying to start some Guest OS to use the command line,

    vmrun t ws instant revertToSnapshot...
    ABC.vmx

    WS t vmrun star.../abc.vmx

    But all are lunached under the same VMWorkstation window with different tabs. How can I make each guest operating system to start a separate instance of VMWorkstation window?

    Thank you

    Mateen

    Just use

    vmware.exe ___________________________________

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

Maybe you are looking for