Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by Peter Murschall

  1. Peter Murschall

    Single-line Do-CMD is a bit uncooperative.

    My guess is that the DO-command parser goes another way as the other parsers, for example the (peculiar) FOR will work as expected: D:\JPSoft\TCC22>:do 7 (Echo ``) ECHO ist AUS ECHO ist AUS ECHO ist AUS ECHO ist AUS ECHO ist AUS ECHO ist AUS ECHO ist AUS D:\JPSoft\TCC22>:for /L %var In (1,1,7)...
  2. Peter Murschall

    Comparison of IF with Command Group and IFF

    Jay, there is also an ELSE in the If version, e.g. like this: Set jobfile="%1" If %jobfile% EQU "" ( Echo Aufruf: UniXAnsi Eingabedatei U/M (%helpparam%) Goto :EOF ) Else ( Echo jobfile=%jobfile% Echo Full :%~f1 Echo Name :%~n1 Echo Ext :%~x1 Echo Drive:%~d1 Echo Path...
  3. Peter Murschall

    Single-line Do-CMD is a bit uncooperative.

    I tried to remove some old DOS/CMD-klutches, e.g. replacing Echo. by Echo ``, but That means : Do 5 (Echo.) is working, Echo ``,Screen %_row %_column ^r^n is not. Why ?
  4. Peter Murschall

    v27.00.17: PSHELL /S dosn't do nothing

    Found ! The reason is the "empty" environment, especially the path. I have a script in my starting sequence wich uses the ENDLOCAL var var2 etc, this cleans the Environment and lead to the state, that TCC will not found Powershell. So I've created a workaround with SET > varlist / SET /R...
  5. Peter Murschall

    v27.00.17: PSHELL /S dosn't do nothing

    Try it without the event-ID, it maybe that this Event (Goto Sleep) is not recorded on Your machines. Get-EventLog System -Source 'Microsoft-Windows-Kernel-Power' -newest 5 This should give a result in PowerShell: V22: V27:
  6. Peter Murschall

    v27.00.17: PSHELL /S dosn't do nothing

    Joe, try it with the command, as seen in the screenshot: PShell /S "Get-EventLog System -Source 'Microsoft-Windows-Kernel-Power' -newest 25 | Where-Object {$_.InstanceID -eq 42} |Format-Table Timegenerated" or Get-EventLog System -Source 'Microsoft-Windows-Kernel-Power' -newest 25 |...
  7. Peter Murschall

    v27.00.17: PSHELL /S dosn't do nothing

  8. Peter Murschall

    v27.00.16/17: ENDLOCAL with exporting variables wipes out the complete Environment

    include %PATH% :banhappy: T1.BTM Echo Test for Setlocal/EndLocal :Set Directory-List Set dirlist=E:\Projekte,E:\Daten\Excel ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Echo %0 : dirlist before: %dirlist% Call T2.btm Echo %0 : dirlist after: %dirlist% Echo %0...
  9. Peter Murschall

    %_BATTERY returns 0 and others

    The basis is also not the problem, because I already struggled with WMI and WMIC years ago. This means that WQL or other queries are not a problem, but the incredible variety of classes and methods and properties - and all especially the understanding of these. Because the whole thing is only...
  10. Peter Murschall

    Some minor flaws

    Some advantages for me are: 1) It is fast, and usually shows me exactly the information I am looking for: purpose, spelling, switches, parameters etc. 2) It is German, mostly ....:smile: Maybe this is why it is appreciated by other "foreign" users. I have few problems with the English...
  11. Peter Murschall

    Some minor flaws

    Aha, thats are reasons of course, but nevertheless regrettable, because I like it :happy:
  12. Peter Murschall

    %_BATTERY returns 0 and others

    Yeah, I suspected as much. Such as? WMI ? Pretty extensive study necessary. Well, I found just these values in TCC very handy, like many things in TCC :smile:
  13. Peter Murschall

    %_BATTERY returns 0 and others

    Thanks, so I can update my BatteryState-Function: BatteryState=%@IF[%_BATTERY == 128 .AND. %_BATTERYLIFE == unknown .AND. %_BATTERYPERCENT == unknown,^ No Battery present :-),^ %@IF[%_BATTERY GE 8,%@FIELD[%@EVAL[%_BATTERY AND 7],Niedrig-Hoch,Hoch,Niedrig,3-N/A,Kritisch]...
  14. Peter Murschall

    %_BATTERY returns 0 and others

    What does the value 0 mean? The same as unknown? I have also received 9 and 10, but they are not documented. I assume that such values as 9,10 and 12 can also "appear" as combinations with 1+8 / 2+8 / 4+8, i.e. state high + charging, low + charging and critical + charging. If so, You should...
  15. Peter Murschall

    Some minor flaws

    Yeah, that probably describes it more accurately, but it's still very cumbersome :cool: Most things are okay in the English version, right ? :happy: Here it looks like
Back
Top