Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HTA parameter an batch übergeben

Empfohlene Antworten

Veröffentlicht

Guten Morgen zusammen,

ich habe im mom folgendes Problem und zwar möchte ich in HTA den Inhalt eines Textfeldes als 'Befehl'/Parameter an eine Batchdatei oder an den DOS-Command übergibt.

Leider habe ich noch keine Lösung gefunden.

So inetwa habe ich mir das vorgestellt:

<html>

  <head>

  <title>Tool</title>

  <hta:application

    id="HelloWorld"

    applicationName="Tool"

    border="5pt"

    borderStyle="raised"

    caption="yes"

    maximizeButton="yes"

    minimizeButton="yes"

    showInTaskBar="yes"

    singleInstance="yes"

    sysMenu="yes"

    windowState="maximize"

  >

	<script type="text/javascript" language="JScript">

	function starte(exe) {

  	var WshShell = new ActiveXObject("WScript.Shell");

  	WshShell.Run(exe);

	}

</script>


  </head>

  <body>

<SCRIPT LANGUAGE="VBScript">


    Sub Window_onLoad

        window.resizeTo 400,300

    End Sub 


</SCRIPT>



  <p>TestTool</p>

  <form>

    <table>

	<tr>

    		<th>IP</th><th><input type="text" value="" name="IP"></th>

	</tr>

     </table>

     </br>

     <input type="button" onClick="starte('test.bat')" value="Shutdown">

  </form>

  </body>

</html>

und es soll halt der Inhalt des Textfensters an test.bat weitergegeben werden so als wie wenn der User es selbst eingegeben hat.

lg,

Blackbeary

PS: System: XP

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.