Trusted Contributor.. kkoerrentz Trusted Contributor..
Trusted Contributor..

VuGen - Possibility: Opening CMD and type something?

Hello everyone,

is there any possibility to open a Command prompt via VuGen and "type" some characters?

Current Problem:

I want to open a programm (Cisco Any Connect Client) via cmd and then type username (Enter) and password.

What we currently do:

Using popen()-function and sending login data via txt-File.
But this leads into infinte loop (looping logins) when login fails.
By typing it manually this effect will not occur. I have tested this.


Unfortunatelly I didn't find an answer to my issue yet.


Labels (3)
1 Reply
Outstanding Contributor.. JHF Remmelzwaal Outstanding Contributor..
Outstanding Contributor..

Re: VuGen - Possibility: Opening CMD and type something?

You might try the system() command like:

system("cmd /c notepad.exe");

Not sure if this works stable.

I hope you do not need to test with many users this way.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.