Wo ist der Fehler in diesem VBS Codeausschnitt?
Hei, habe frisch angefangen mit VBS und kann den Fehler in diesem Codeausschnitt nicht finden... Es soll überprüfen ob die Datei existiert, falls dies nicht der Fall ist, soll sie erstellt werden.
Fehler: Typenkonflikt: 'FileExists'
Vielen Dank für jede Hilfe
path = Replace(WScript.ScriptFullName, WScript.ScriptName, "timeCalc.txt")
If (FileExists(path)) Then
Else
CreateObject("Scripting.FileSystemObject").CreateTextFile(path).Write "test"
End If
Fehler: Typenkonflikt: 'FileExists'
Vielen Dank für jede Hilfe
Please also mark the comments that contributed to the solution of the article
Content-Key: 336269
Url: https://administrator.de/contentid/336269
Printed on: April 25, 2024 at 19:04 o'clock
2 Comments
Latest comment
'...
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(path) Then
'...
End if
'...