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:
![X.webp X.webp](https://www.elevenforum.com/data/attachments/125/125228-88bc5a994f721c5035fc3698fd0e323f.jpg?hash=DbSAmsL6Os)
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:
![X.webp X.webp](https://www.elevenforum.com/data/attachments/125/125228-88bc5a994f721c5035fc3698fd0e323f.jpg?hash=DbSAmsL6Os)
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
- win11pro
- Computer type
- Laptop
- Manufacturer/Model
- lenovo