Wscript issue..


delicacy

Member
Local time
4:27 PM
Posts
75
OS
Win11 Pro, 24H2 26100.2152
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

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
Sub RunApplication(ByVal sFile)

Dim WShell : Set WShell = CreateObject("WScript.Shell")
WShell.Run sFile, 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"
 

My Computer

System One

  • OS
    Windows 10 Home
    Computer type
    Laptop
    Manufacturer/Model
    HP Elitebook 2530p
    CPU
    Intel Core 2 Duo L9400@1.86 GHz
    Memory
    2 GB
Thank you so much Ben ))
 

My Computer

System One

  • OS
    Win11 Pro, 24H2 26100.2152
    Computer type
    Laptop
    Manufacturer/Model
    lenovo

Latest Support Threads

Back
Top Bottom