Paule
Level-1
- Beiträge
- 3.058
- Reaktionspunkte
- 869
-> Hier kostenlos registrieren
Hallo Kolleginnen und Kollegen.
Software: WinCC Flex 2008 SP1
Hardware: MP377
Ziel:
Ich möchte das aktuelle Datum der Backupdatei lesen und möchte es mit dem aktuellen Projektstand vergleichen.
Lösung:
Versuche jetzt erst mal nur die Backupdatei zu lesen:
Datum_Backup ist eine Interne Variable vom Typ Date&Time
Problem Fehlermeldung:
Leute ich zähle auf Euch > Ihr schafft das
Danke schon mal im Voraus
Software: WinCC Flex 2008 SP1
Hardware: MP377
Ziel:
Ich möchte das aktuelle Datum der Backupdatei lesen und möchte es mit dem aktuellen Projektstand vergleichen.
Lösung:
Versuche jetzt erst mal nur die Backupdatei zu lesen:
Code:
[COLOR=royalblue][COLOR=black]1[/COLOR]. Dim[/COLOR] datei, fso, d, s
2. datei = "\Storage Card MMC\FlashBoot_MP377_12Touch\nk.nb0"
[COLOR=royalblue][COLOR=black]3.[/COLOR] Set[/COLOR] fso = [COLOR=royalblue]CreateObject[/COLOR] ("Scripting.FileSystemObject")
[COLOR=royalblue][COLOR=black]4.[/COLOR] Set[/COLOR] d = fso.GetFile (datei)
5. s = d.DateLastModified
6. SmartTags ("Datum_Backup") = s
Problem Fehlermeldung:
Code:
Fehler Active Xcomponent can't create object:
Scripting.FileSystemObject
in Skript <Datum_lesen> in Zeile 3
Leute ich zähle auf Euch > Ihr schafft das
Danke schon mal im Voraus