Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15079

Can't open chrome after shell "chrome" command

$
0
0
Hello
I am using that code to open chrome:
Code:

Shell "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --profile-directory=Default --new-window https://drive.google.com/drive/my-drive", vbNormalFocus
Or:
Code:

ShellExecute me.hwnd, "Open", "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", "--profile-directory=Default --new-window https://drive.google.com/drive/my-drive", "", 1
it works,
The problem is, when I run the software from VB then after that, it is not possible to open another Chrome window, outside the software, even Chrome of another profile,
but, when I run the software as an EXE then, everything is fine
What can I do?

Viewing all articles
Browse latest Browse all 15079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>