Hi Axel, i'm lost with an old windows script address that doesn't work, could you please help me with that address ?
When i use this address on "startup" and then "Run":
"C:\Program Files\Desktop Lock\TLDL.EXE" /LOCK
It works...
But when i use it on my vbs file, i get this strange error:

THE VBS FILE CONTENT:
Sub RunApplication(ByVal sFile)
Dim WShell : Set WShell = CreateObject("WScript.Shell")
WShell.Run Chr(34) & sFile & Chr(34), 8, false
End Sub
RunApplication "C:\Program Files\Desktop Lock\TLDL.EXE" /LOCK
WScript.sleep(4000)
RunApplication "C:\Program Files\Toolz\shutdown.exe"" -s suspend -l 0"
Can someone please fix the runapplication section ? not knowing why it doesn't work..
I get this screenshot attached..
When i use this address on "startup" and then "Run":
"C:\Program Files\Desktop Lock\TLDL.EXE" /LOCK
It works...
But when i use it on my vbs file, i get this strange error:

THE VBS FILE CONTENT:
Sub RunApplication(ByVal sFile)
Dim WShell : Set WShell = CreateObject("WScript.Shell")
WShell.Run Chr(34) & sFile & Chr(34), 8, false
End Sub
RunApplication "C:\Program Files\Desktop Lock\TLDL.EXE" /LOCK
WScript.sleep(4000)
RunApplication "C:\Program Files\Toolz\shutdown.exe"" -s suspend -l 0"
Can someone please fix the runapplication section ? not knowing why it doesn't work..
I get this screenshot attached..
My Computer
System One
-
- OS
- Win11 Pro, 24H2 26100.2152
- Computer type
- Laptop
- Manufacturer/Model
- lenovo