I'm facing a strange problem with starting a file in Visual Basic 6. The point is that when I run the code in Visual Basic 6 without compiling it, the code runs without any problems. But when I compile and run, I get an error.
I know the problem comes from this part of the code.
Dim RetVal
RetVal = Shell("C:\Windows \System32\ComputerDefaults.exe", 1)
And more precisely Windows \ If you notice there's space between Windows and slash, but this is intentional. It is this part that creates problems
Is there any chance, the file to be executed in this way, with space between Windows and slash?