Notepad programming

I want to make a bat file program that calculates a sum, the equation is wage per hour divided by 60, * time in minutes.
the operator will input the data then it should calculate the sum but instead it tells them the sum and not the answer.
The script
is as follows...

@Echo off
cls
:Password
Set input=
set /p input= Password (input then press enter) :
if %input%==cheese goto YES 
if not %input%==cheese goto NO

:Yes 

cls
goto CALCULATOR1

:NO

Echo INCORRECT PASSWORD
pause
goto Password

:CALCULATOR1
set wageph=
set /p wageph= Wage (Per Hour) :
pause
goto CALCULATOR2

:CALCULATOR2

cls 
set timem=
set /p timem= Time (In Minutes) : 
pause
goto CALCULATOR3

:CALCULATOR3

cls
set answer=
set/p answer= %wageph% / 60 * %timem%
echo %answer%
pause

Anwsers to the Problem Notepad programming


Hi James,
 
The issue you posted would be better suited in the MSDN Forums.
I would recommend posting your query in the MSDN Forums.
 
MSDN Forum
http://social.msdn.microsoft.com/Forums/en-US/categories
 
Hope this information helps.


Click here to download the registry repair application


Another Safe way to Repair the problem: Notepad programming:

Click here to download the registry repair application .

How to Fix Notepad programming with SmartPCFixer?

1. You can Download SmartPCFixer here. Install it on your computer. When you open it, it will perform a scan.

2. After the scan is done, you can see the errors and problems need to be fixed. Click Fix All.

3. When the Fixing part is finished, your computer has been speeded up and the errors have been removed


Related: [Solved] Creating labels in Microsoft Word Starter,How to defrag my system? [Anwsered],Solution to Error: I can't find windows journal in my Windows 7 OS. It is included in the Starter edition?,Scripted Diagnostics Native Host not working,How to Resolve - system restore points keep vanishing in windows 7?,Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,I'm always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,Troubleshoot:Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive. Error,External Hard Drive not listed in Windows 7 backup wizard Tech Support,Tech Support: I'm always being signed off so annoying,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.,Referencing data in Access using Excel [Anwsered],Need Best Way To Present Data [Anwsered],Same question but for windows 7 home edition,sometimes fullscreen won't activate [Solved],Solution to Error: We bought a new computer with windows 7 and it is constantly freezing. How do we fix this?,Solution to Error: Windows 8 update crash (2013-07-22),Troubleshooting:pfstudiox Error,[Solved] Svchost Helper,[Solution] Sm1bg exe,How to Fix Problem - Io Device?,Fast Solution to Problem: I Can Error Code 0x6d9
Read More: Fast Solution to Problem: "Display Animations" not available,Troubleshooting:"Close" doesn't close the program,Troubleshooting Numbers Starting with 0 Stored as Text not sorting correctly in table,ntoskrnl exe bsod error,not able to view available wireless network, I am running XP Home. Tech Support,Need to change the programs in Start Up mode.,needing to correct error- 0x80070002,New windows7 machine won't connect to my older vista network/workgroup,New Dell Inspiron 20 mouse will not work,New Windows 7 Asus laptop won't connect to internet

"Conditional formatting" in Word? (no tables)

I have a very long chat log in a document.
For each person's response, there is one line with the time and name, and the next line is the response.
I would like to indent all the response paragraphs; in other words, every paragraph that
does not start with a number.
Is it possible to perform something similar to conditional formatting in Excel or tables in Word, but to paragraphs?

Keys to the Problem "Conditional formatting" in Word? (no tables)


There isn't a conditional format you can use but you can either do it with a macro or perhaps use a bit of lateral thinking.
Lateral Thinking method
Select text and Convert to Table (2 columns, separate at paragraph marks)
Select column 1 and apply a style
Select column 2 and apply a different style
Now convert the table back to text (choosing paragraph as the separator again)
Macro method (untested concept)
Sub ZebraPara()
Dim i as integer
For i = 1 to ActiveDocument.Paragraphs.Count step 2
  ActiveDocument.Paragraphs(i).Style = "Normal Indent"
Next
End Sub


Click here to download the registry repair application


Another Safe way to Fix the problem: "Conditional formatting" in Word? (no tables):

Click here to download the registry repair application .

How to Fix "Conditional formatting" in Word? (no tables) with SmartPCFixer?

1. You can Download SmartPCFixer here. Install it on your system. When you open SmartPCFixer, it will perform a scan.

2. After the scan is done, you can see the errors and problems which need to be fixed.

3. When the Fixing part is finished, your computer has been speeded up and the errors have been fixed


Related: [Solved] Creating labels in Microsoft Word Starter,How to defrag my system? [Anwsered],Solution to Error: I can't find windows journal in my Windows 7 OS. It is included in the Starter edition?,Scripted Diagnostics Native Host not working,How to Resolve - system restore points keep vanishing in windows 7?,Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,I'm always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,Troubleshoot:Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive. Error,External Hard Drive not listed in Windows 7 backup wizard Tech Support,Tech Support: I'm always being signed off so annoying,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.,Referencing data in Access using Excel [Anwsered],Need Best Way To Present Data [Anwsered],Same question but for windows 7 home edition,sometimes fullscreen won't activate [Solved],Solution to Error: We bought a new computer with windows 7 and it is constantly freezing. How do we fix this?,Solution to Error: Windows 8 update crash (2013-07-22),Troubleshooting:pfstudiox Error,[Solved] Svchost Helper,[Solution] Sm1bg exe,How to Fix Problem - Io Device?,Fast Solution to Problem: I Can Error Code 0x6d9
Read More: [Anwsered] "Bad Data" Error when trying to log in from the Windows 7 Welcome screen,[Solution] notepad popping up,How to Fix Numbering after Table of Contents,[Solution] Nothing happens, when i press ctrl alt del,How Can I Fix not been able to Trace Dependents for some inputs,Need to change the programs in Start Up mode.,needing to correct error- 0x80070002,New windows7 machine won't connect to my older vista network/workgroup,New Dell Inspiron 20 mouse will not work,New Windows 7 Asus laptop won't connect to internet

nic power management changes after a reboot

Hi,
 
We are running Windows 7 Enterprise, fully patched on Dell Optiplex 745, 755, 760, and 980 computers and I can duplicate this on all of them.
I go into Device Manager -> Network Card -> Power management.  Check the boxes that we want.  Close Device Manager.  Reopen Device Manager to check that the change took.  It did.  Reboot.  All Power Management settings for the nic are now unchecked.
Normally we run a script to do this, but it doesn't matter whether you make the change via script or by hand, the Power Management settings always revert back to all three boxes unchecked after a reboot.
As long as the computer isn't rebooted or shut down, the setting sticks for at least several days, the longest time we've tested.
I found one thread that said this was a known issue, but the link to the answers.microsoft.com page came up 404. 
Any ideas?
 
Here's the script, but like I said, it doesn't matter whether by script or by hand.
On Error Resume Next

Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20

arrComputers = Array(".")
For Each strComputer In arrComputers
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\WMI") 
    Set colItems = objWMIService.ExecQuery("SELECT * FROM MSPower_DeviceEnable", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly) 
    Set colItems3 = objWMIService.ExecQuery("SELECT * FROM MSPower_DeviceWakeEnable", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly) 
    Set objWMIservice2 = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") 
    Set Colitems2 = objWMIService2.ExecQuery("Select * From Win32_NetworkAdapter") 
    For Each objItem in Colitems2
        if objitem.adaptertypeID = 0 and objitem.netconnectionid <> "" and (objitem.adaptertypeID = 0 and ( instr(1,objitem.netconnectionid,"wireless",1) = 0)) and objitem.adaptertypeID = 0 and objitem.manufacturer <> "Microsoft" then

       
            For Each objItem2 In colItems
                ''wscript.echo LEN(objitem.PNPDeviceID)
                ''wscript.echo LEN(objItem2.InstanceName)
                IF LEN(objitem.PNPDeviceID) <= LEN(objItem2.InstanceName) THEN
                    IF UCASE(objItem.PNPDeviceID) = LEFT(ucase(objItem2.InstanceName),LEN(objitem.PNPDeviceID)) THEN
                        'wscript.echo "Active: " & objItem2.Active
                        'wscript.echo "Enable: " & objItem2.Enable
                        'wscript.echo "InstanceName: " & objItem2.InstanceName
                        objitem2.enable =  "0"
                        objitem2.Put_()
                        'wscript.echo
                        For Each objItem3 In colItems3
                            IF LEN(objitem.PNPDeviceID) <= LEN(objItem3.InstanceName) THEN
                                IF UCASE(objItem.PNPDeviceID) = LEFT(UCASE(objItem3.InstanceName),LEN(objitem.PNPDeviceID)) then
                                    'wscript.echo "Active: " & objItem3.Active
                                    'wscript.echo "Enable: " & objItem3.Enable
                                    'wscript.echo "InstanceName: " & objItem3.InstanceName
                                    objitem3.enable =  "1"
                                    objitem3.Put_()
                                   
                                END IF
                            END IF
                        Next
                    end if           
                end if  
            Next
        end if
    Next
Next

Set objReg=GetObject("winmgmts:impersonationLevel=impersonate!\\" & strComputer & "\root\default:StdRegProv")
' Connect to Root\Cimv2 and Root\Wmi namespaces

Set objCimv2 = GetObject("winmgmts:root\cimv2")
Set objWmi = GetObject("winmgmts:root\wmi")

' Get all network adapters where IPEnabled is true

Set colAdapterConfigs = objCimv2.ExecQuery ("Select * From Win32_NetworkAdapterconfiguration Where IPEnabled = True")

For Each objAdapterConfig In colAdapterConfigs
    Set colAdapters = objAdapterConfig.Associators_(, "Win32_NetworkAdapter")
    For Each objAdapter In colAdapters 
        ' Get the matching MSNdis_DeviceWakeOnMagicPacketOnly instance

        Set colDeviceWakeOnMagicPacketOnly = objWmi.ExecQuery _
        ("Select * From MSNdis_DeviceWakeOnMagicPacketOnly " _
        & "Where InstanceName Like '" _
        & Replace(objAdapter.PNPDeviceId, "\", "\\") & "%'") 

        ' Enable "Only allow management stations to bring the computer out of standby"
        For Each objDeviceWakeOnMagicPacketOnly In colDeviceWakeOnMagicPacketOnly
            objDeviceWakeOnMagicPacketOnly.EnableWakeOnMagicPacketOnly = False
            objDeviceWakeOnMagicPacketOnly.Put_()
            'wscript.echo "Enabled Magic Packet Only on " & objAdapter.Name
        Next
    Next
Next
Any ideas?

Anwsers to the Problem nic power management changes after a reboot


Hi,
The issue you posted is related to TechNet and would be better suited in the TechNet community.
Please visit the link below to find a community that will offer the best support.
http://social.technet.microsoft.com/Forums/en-US/categories
 Azam – Microsoft Support.
Visit ourMicrosoft Answers Feedback Forum and, if you have any feed backs you can post here.


Click here to download the registry repair application


Another Safe way to Repair the problem: nic power management changes after a reboot:

Click here to download the registry repair application .

How to Fix nic power management changes after a reboot with SmartPCFixer?

1. You can Download SmartPCFixer here. Install it on your computer. When you open it, it will perform a scan.

2. After the scan is done, you can see the errors and problems which need to be fixed.

3. The Repair part is finished, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in this software. Like dll downloading, junk file cleaning and print spooler error repair.


Related: Computer goes blank when attempting to access a website.,how do i remove fingerprints from my computer screen?,Solution to Error: How to use recovery tools in Windows 7 from the 100mb partition?,References tab APA Citations Margins,How to Fix - Someone please help me. DVD RW drive not showing up! WIN7(STARTER)32 bit?,Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,I'm always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,Need Best Way To Present Data [Anwsered],Same question but for windows 7 home edition,sometimes fullscreen won't activate [Solved],Solution to Error: We bought a new computer with windows 7 and it is constantly freezing. How do we fix this?,Solution to Error: Windows 8 update crash (2013-07-22),Missing Microsoft Windows ashoutxt.dll File - How to Fix,How Can I Fix cxcore096.dll Error by Myself,How Can I Fix dsauth.dll Error by Myself,msde.dll Missing,How Can I Fix psizewizres.dll Error by Myself,How to Download ASUS XGI Compatible Super VGA Driver Package Version R1.13.00/Driver Version 6.14.10.1130 for Windows XP 32/64 bit(WHQL),Windows Server 2003 32/64 bit(WHQL),Windows Vista 32/64 bit(WHQL),Windows Server 2008 32/64 bit(WHQL),Windows 7 32/64 bit(WHQL),Window,Update NeoMagic® MagicMedia 256AVP Display Adapter Driver,How to Update NVIDIA RIVA TNT2 Model 64,Download Realtek ALC850 AC'97 Driver V5.10.0.5900 WHQL for Windows 2000/XP/2003 & 64bit XP/2003.,How to Update Realtek LAN V6.203.0214.2008
Read More: How Can I Fix - New Contact \/ Group not appearing in task bar?,Troubleshoot:new laptop got blue screen windows 7,Network how do you get windows vista computer to network with windows 7 computer Anwsered,Troubleshooting:No Large Icon choice under Customize Toolbar in IE8.,network service using svchost.exe high cpu (50%) windows 7 sp1 acer 5738,my shortcuts formates change to .lnk how can i fix it?,My telstra turbo next g network cuts in and out continually while I am n the internet and it is quite difficule at times actually getting internet.,My seagate expansion drive cant be ejected,My word program is locked and I cant edit documents!! HELP,Need to reinstall IE 11

↑このページのトップヘ