I would like to know if there is a way to pass a variable to the vb6 Shell command.
Something like this:
Var$ = "filename.jpg"
'I've already tried:
Shell Var$, vbNormalFocus
Shell "mspaint.exe" & txtFileBande.Text, 1
Run = Shell (Var$, vbNormalFocus)
Run = Shell ("mspaint.exe" & txtFileBande.Text, 1)
I need to be able to run files with different extensions like: .jpg, .cdr, .pdf, and so on, so the OS can call the default program for that extension.
Thank you in advance for your time.