Interview Questions

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

SilkTest Questions and Anwsers


(Continued from previous question...)

90.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 Files\xyz\abc.exe
Now I need to escape the " " in 'Program Files'.


Answer1:
One thing is, you can use as C:\Progr~1\xyz\abc.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 Files\xyz\abc.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 Files\MyProg\Prog.exe"
you can pass the quoted string :
""C:\Program Files\MyProg\Prog.exe""

and it should execute Prog.exe correctly.

Answer3:
Might need to mix your quotes to make that work, like:
"'C:\Program Files\MyProg\Prog.exe'"

(Continued on next question...)

Other Interview Questions