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

[RESOLVED] Set a variable from a shortcut parameter ?

$
0
0
Hi friends :)

I don't know how it could be named if it exists, but I would set a VB variable from a parameter in the shortcut of app.

I explain.
In the app, I have a variable like this :
Code:

Dim test As Boolean
test = false


For exemple, the shortcut top launch the exe file, in its properties :
Target : C:\Program Files\MyApp\App.exe -t

And in the VB app, if -t is present in the target, I would have a variable like
Code:

test = true
If the target is C:\Program Files\MyApp\App.exe , the variable test still false.

Is it possible ?

Thanks !
Couin

Viewing all articles
Browse latest Browse all 15564

Trending Articles



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