Shell invalid procedure call or argument

Lakin Jr.

New member
Joined
Jul 15, 2024
Messages
2
Points
1
hey VB gurus,
I got the error Invalid Procedure Call or argument whenever i tried to execute a .exe.

example of my code
 

Hermina

New member
Joined
Jul 15, 2024
Messages
2
Points
1
notepad is in windows directory, also.. never use drive letters in your code..

dim pid as integer
pid = shell( environ("systemroot") & "\notepad.exe", vbnoobfocus)
 
Top