neocrown
Goto Top

Per Batch notepad öffnen mit vordefiniertem Text

Hallo Admins

Ich hoffe jemand könnte mir kurz sagen wie mein Title schon beschreibt, wie ich per Batch
eine Notepaddatei öffne mit einem schon darin enthaltenen Text zB. "Hallo Welt"

danke schon im voraus

grüsse

Content-Key: 182121

Url: https://administrator.de/contentid/182121

Ausgedruckt am: 28.03.2024 um 10:03 Uhr

Mitglied: MrNetman
MrNetman 16.03.2012 um 15:56:51 Uhr
Goto Top
?
notepad name.txt
funkioniert erst mal.
Was soll es jetzt weiter geben?
notepad "c:\pfad\datei.endung"
Mitglied: bastla
bastla 16.03.2012 um 16:00:59 Uhr
Goto Top
Hallo NeoCrown!
@echo off & setlocal
set "V=%temp%\Vorlage.txt"  
>%V% echo Hallo Welt
notepad %V%
- danach "Speichern unter..." und gut ist ...

Alternative: VBS mit "SendKeys" ...

Grüße
bastla
Mitglied: NeoCrown
NeoCrown 19.03.2012 um 08:40:53 Uhr
Goto Top
Hallo Bastla,

Vielen Dank =) hast mir ne menge Zeit erspart!

Grüsse

Neo