Answers

Question and Answer:

  Home  SilkTest

⟩ Does anybody know the escape sequence for space in Silk Test?

Does anybody know the escape sequence for 'space' in Silk Test?

For eg :

On the cmd line I have to execute an exe, the location of which is : C:Program Filesxyzabc.exe

Now I need to escape the " " in 'Program Files'.

Answer1:

One thing is, you can use as C:Progr~1xyzabc.exe

Second one is give like myWindow.TypeKeys(" ")

Or just enclose the whole cmd in "". This will handle the space, I think this is your issue?

like:

string sCmdLine = "C:Program Filesxyzabc.exe"

Sys_Execute(sCmdLine)

Answer2:

You can use the command line with quotes when you have a long file name. so, if you need to execute "C:Program FilesMyProgProg.exe"

you can pass the quoted string :

""C:Program FilesMyProgProg.exe""

and it should execute Prog.exe correctly.

Answer3:

Might need to mix your quotes to make that work, like:

"'C:Program FilesMyProgProg.exe'"

 158 views

More Questions for you: