Bat-File in Autostart?

Rapid1898

Lt. Junior Grade
Registriert
Jan. 2012
Beiträge
312
Ich habe ein kleines Bat-File (W32tm /resync /force) und würde das gerne immer automatisch beim Bootvorgang ausführen.
Habe das Bat-File dazu in die Autostart kopiert - leider wird das Programm aber offensichtlich beim Start nicht ausgeführt.

Gibt es hier eine Lösung damit das File immer durchgeführt wird beim Start?
 
@Rapid1898

In welches "Autostart" hast du deine BAT File kopiert?

Windows Taste + R - shell:startup - C:\Users\****\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Ist es auch wirklich dieser Ordner?
 
  • Gefällt mir
Reaktionen: poolk
Da ich es kenne, dass der Autstart herumzickt - trotz, dass alles korrekt ist - kann ich nur ebenfalls zu Aufgabenplanung raten.

Da W32tm(.exe) in C:\Windows\System32 liegt ist in der Aufgabenplanung CMS als Startrampe unnötig.

CN8
 
@Rapid1898
Warum brauchst Du das Einstellen der Zeit fuer jeden Start des Geraetes?

BFF
 
Da halte ich mich lieber mal bedeckt :D
Ein Tool das im Autostart die Uhrzeit wäre mir allerdings lieber & verlässlicher.
CN8
 
@BFF:
Seit ich DualBoot mit Linux habe, gibt es Probleme mit der Uhrzeit in Win10 - es gibt hier einige Einstellungsmöglichkeiten und habe alles versucht - bei mir funktioniert das nicht - wenn ich den PC neuboote ist die Uhr falsch (bzw. ist auf den letzen Stand bei dem ich den PC heruntergefahren habe)

@GIZMO
Autostart Pfad solle richtig sein - dort drinnen ist die BAT-Datei
C:\Users\Polzi\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

@All:
In der Aufgabenplanung habe ich das BAT-File jetzt hinterlegt - funktoniert aber lieder auch so nicht
Der Zeitsync mit diesem Befehle => W32tm /resync /force
sollte aber richtig sein prinzipiell, oder?
 
Ach so.
Stell mal testweise im Linux ein das nicht UTC verwendet wird. Das half mal vor einiger Zeit.

BFF
 
@BFF:
wie schon gesagt - habe ich schon alles versucht - in Linux ist schon lange eingestellt das UTC nicht verwendet wird - die Uhrzeit in Win10 ist trotzdem bei jedem Boot falsch...

Habe die Zeit jetzt nocheinmal kontrolliert in Linux - wenn ich das richtig verstehe war die Uhrzeit schon vorher <> UTC
Code:
rapid1898@rapid1898-B85-HD3:~$ timedatectl
                      Local time: Mo 2020-06-29 21:53:28 CEST
                  Universal time: Mo 2020-06-29 19:53:28 UTC
                        RTC time: Mo 2020-06-29 21:48:03
                       Time zone: Europe/Vienna (CEST, +0200)
       System clock synchronized: no
systemd-timesyncd.service active: yes
                 RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
         This mode can not be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.
rapid1898@rapid1898-B85-HD3:~$ ^C
rapid1898@rapid1898-B85-HD3:~$ timedatectl
                      Local time: Mo 2020-06-29 21:56:41 CEST
                  Universal time: Mo 2020-06-29 19:56:41 UTC
                        RTC time: Mo 2020-06-29 21:48:03
                       Time zone: Europe/Vienna (CEST, +0200)
       System clock synchronized: no
systemd-timesyncd.service active: yes
                 RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
         This mode can not be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.

Wenn jemand einen Tipp für mich hat wie ich die Uhr doch richtig bekomme in Linux + Win10 - bitte immer her damit...
 
zu
https://www.georglutz.de/blog/2011/06/13/echtzeit-uhr-unter-windows-auf-utc-stellen/

Ich habe leider keine Datei / Verzeichnis /etc/default/rcS:
Code:
rapid1898@rapid1898-B85-HD3:~$ cd /etc/default
rapid1898@rapid1898-B85-HD3:/etc/default$ ls
acpid            crda             irqbalance           rsyslog
acpi-support     cron             kerneloops           saned
add-apt-key      cryptdisks       keyboard             smartmontools
alsa             dbus             locale               speech-dispatcher
amd64-microcode  google-chrome    motd-news            timeshift.json
anacron          grub             networkd-dispatcher  ufw
avahi-daemon     grub.d           networking           useradd
bsdmainutils     hddtemp          nss
cacerts          im-config        openvpn
console-setup    intel-microcode  rsync
rapid1898@rapid1898-B85-HD3:/etc/default$ cd rcS
bash: cd: rcS: Datei oder Verzeichnis nicht gefunden
rapid1898@rapid1898-B85-HD3:/etc/default$

Die Situation ist mir klar - aber aus meiner Sicht habe ich bereits alle eingestellt wie es sein soll, oder?
Code:
rapid1898@rapid1898-B85-HD3:/etc/default$ timedatectl
                      Local time: Mo 2020-06-29 22:17:59 CEST
                  Universal time: Mo 2020-06-29 20:17:59 UTC
                        RTC time: Mo 2020-06-29 21:48:03
                       Time zone: Europe/Vienna (CEST, +0200)
       System clock synchronized: no
systemd-timesyncd.service active: yes
                 RTC in local TZ: yes
 
Weil ich schon praktisch alles versucht habe und nicht funktioniert...

Ist es evt. auch möglich, das schlicht und einfach die "Batterie" am Mainboard kaputt ist?
(immer wenn ich den PC boote dann habe ich genau die Zeit wo ich das letzte mal den Rechner heruntergefahren habe...)

Ist das überhaupt die Art Fehler die beim Dualboot-Konflikt entsteht normalerweise?
 
Das mit der Zeit bei Dualboot ist so.

Wenn allerdings die Zeit „einfriert“ ist was an der Hardware. BIOS aktualisieren plus Batterie wechseln waere mein Ansatz.
 
Zurück
Oben