2016年07月

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

↑このページのトップヘ