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 TonyT

  1. T

    Set 1% then Echo 1%

    | If you want a literal percent sign, you need to double it: set T=1%% echo %T% | Otherwise, it's interpreted as the start of a variable or function name. Thanks for all for help from everybody that posted. Doubling %'s was the hint I needed and I was able to solve my problem just...
  2. T

    Set 1% then Echo 1%

    in CMD.exe set T=1% Echo %T% echos 1% same in TCC echos only a 1 , not 1% What is going on?
  3. T

    Done Help for SET to include @ExecStr[] hint

    Redirected output does not work with SET. e.g. Echo %_Day | Set Day=%@Line[con,0] does NOT work because it gets set in a child (pipe) instance and environment variables are not propagated back to the parent. use instead for example Set Day=%@ExecStr[Echo %_Day] Please add this in...
  4. T

    Query if Monitor is off?

    | v:\> for /l %i in (0,1,3) echo %@video[%i] | 1 | Tony, would that suit your purposes? Comments, anyone? Yes, this looks like great solution and I'm looking forward to use it Tony
  5. T

    Query if Monitor is off?

    | Hence I still don't have a solution to know whether the remote laptop's screen is on or off. Trying again to make it show as a new post ... vefatica solved it! Using a setup API approach that looks quite ingenious and works on all devices I tried. Rex Conn: Any possibility to...
  6. T

    Query if Monitor is off?

    | Hence I still don't have a solution to know whether the remote laptop's screen is on or off. vefatica solved it! Using a setup API approach that looks quite ingenious and works on all devices I tried. Rex Conn: Any possibility to incorporate his method to make a new internal variable...
  7. T

    @Word from Lines with Pipes

    | One way is to use SETDOS /X to disable special handling of some characters. SETDOS /X-6 will disable redirection. I tried this and it looks likes it is working great. Thanks for the solution. This problem confounded me for ages. Hence the batch file should look like that: copy...
  8. T

    @Word from Lines with Pipes

    html files have lots of what looks like redirects "<" and ">". How can one read from such files, e.g. copy http://jpsoft.com/forums/ test.txt Echo %@Word[0,%@Line[Test.txt,0]] gives an error "The system can not find the file specified"
  9. T

    Query if Monitor is off?

    | I rather doubt that you will because there are no includes for the header files in Vince's source code. I had added the #include windows.h and even #include stdio.h but I guess more was needed. | Perhaps not, and with something like the Open Watcom compiler it ought to be possible to...
  10. T

    Query if Monitor is off?

    | I uploaded it as QUERYLCD.ZIP. Here's what I built: Vance, Thank you so very much. It works excellently and is exactly what I need. A problem solved that confounded me for months! Sorry to not get back right away, I had to go away for the day. Tony
  11. T

    Query if Monitor is off?

    |on my Dell WKS with two physical monitors before/after I put them into standby. | Interestingly, this simple code can tell whether the monitor is in (any) power saving mode. But it can't tell if I have physically turned the monitor off. Thanks Vince. I think I can use your code to do...
  12. T

    Query if Monitor is off?

    |A %_MonitorStatus[] or %@MonitorStatus[] like utility or variable is what I need | I hope I'm wrong but I don't think this is easy to do it. I googled quite a bit. There may be a way to do it with WMIQUERY/@WMI but I couldn't find it (anyone?). I found some rather complicated code...
  13. T

    Query if Monitor is off?

    | Why not use the Windows power management options to turn the screen off after a while? Another example: Say I want to turn the screen ON for this monitoring laptop for people on site when wind-speeds it monitors are above 30mph. How could I ever tell if it is actually on when this laptop...
  14. T

    Query if Monitor is off?

    | Why not use the Windows power management options to turn the screen off after a while? The Notebook is actually doing data acquisition for building movements and in windstorms somebody might actually want to observe it on site - so it turning off unexpectedly would be annoying. Now...
  15. T

    Query if Monitor is off?

    | Is the real issue that you want to know the state of the monitor of a remote system under your control? And your approach is to capture the screen display of TCC running on that system? The PC is under my control, unattended far away. I basically want the monitor off all the time to save...
Back
Top