Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21278

[RESOLVED] command line and new object

$
0
0
I run into a scenario that I am stuck. I have an exe, and in the program, there's this sequence:

1. Create an object provided by API.
2. Call that object to login.
3. On logoff, call that object to logoff

This is working fine; however, now what if I want to pass in command line to my program to logoff at any time that program is running. So in step 2, once the program is logged in. I want to be able to have a shortcut that I can point to that program.exe /logoff and it should call the step 3. It's not working so far, my guess is the object is a new object now and it doesn't tie to that existing object.

Perhaps, pass in the command line to the existing running exe? not sure if that's achieveable.

Viewing all articles
Browse latest Browse all 21278

Trending Articles



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