Ask a Question

Windows R command

m_essaid
Valued Contributor

Windows R command

Hi,

Is there a way to send a command with TestComplete as if it was a executed through a Windows-R key combination ?

 

Thank you,

 

Mehdi

1 REPLY 1
m_essaid
Valued Contributor

I think this could be a solution :

 

  TestedApps.Clear;
  TestedApps.Add('C:\WINDOWS\system32\reg.exe', '', 1, true, 'C:\WINDOWS\system32');
  TestedApps.reg.Params.SimpleParams.CommandLineParameters:= 'import c:\yourRegFile.reg';
  TestedApps.reg.Params.SimpleParams.Activate;
  TestedApps.reg.Run(1, true);

cancel
Showing results for 
Search instead for 
Did you mean: