none
how to make an bat file open an application "all-ways-ontop" RRS feed

  • Question

  • Hey all.

    Im trying to make a script for a thin client like workstation.

    The main issue im seeing with this project is the phone app they are useing.

    It opens and wont forward the app untill you login, (but killing rdp you can then loginto the phone and chose all-ways ontop, on the application via its prefences. dosnt seem to allways work?)

    Any ideas on how to script that?

    mode con: cols=40 lines=10
    @echo Please dont close this window.
    @echo Connecting please wait..
    @echo off
    TITLE Please dont close this window.
    timeout 15 >nul
    start /max C:\BroadSoft\UC-One\Communicator.exe
    timeout 60 >nul
    start /wait mstsc.exe "C:\thinclient.rdp" /v:rds.spacedatacentres.co.uk /f /public
    :choic
    set /P c=Y to shutdown, N to reconnect.[Y/N]?
    if /I "%c%" EQU "Y" goto :yes
    if /I "%c%" EQU "N" goto :no

    :no
    start /wait mstsc.exe "C:\thinclient.rdp" /v:rds.spacedatacentres.co.uk /f /public
    set /P c=Y to shutdown, N to reconnect.[Y/N]?
    if /I "%c%" EQU "Y" goto :ifyes
    if /I "%c%" EQU "N" goto :ifnot

    :yes
    shutdown -s -t 0


    • Edited by oj99 Friday, September 15, 2017 2:05 PM typeo on headding
    • Moved by Bill_Stewart Tuesday, November 7, 2017 9:46 PM Unanswerable drive-by question
    Friday, September 15, 2017 1:14 PM

All replies