Forum Discussion
joffre
15 years agoRegular Contributor
Hi friends. First off all, thanks for your time.
@Jackson,
I debugged as you told me, and it returned exactly what I need. I've attached the log with this post.
I'm using VBScript. And both, "+" and "&" are working the same as concatenation operator.
ComandoCriarTabela is a global Variable.
The log returned to me, when I used the command line you told me to is:
Exactly what I need.
Again: this command line when used like below works perfectly.
Just for you guys don't forget. I'm trying to make my script wait until "EXIT" is typed on CommandPrompt to go to the other script's line. The way I'm doing isn't working OK for me. Before the first CommandPrompt close (and execute enterily), the other script line starts another CommandPrompt and it all gets wrong.
If you guys want. I may attach my entire script here with .zip format. Just let me know.
Thanks you all.
@Jackson,
I debugged as you told me, and it returned exactly what I need. I've attached the log with this post.
I'm using VBScript. And both, "+" and "&" are working the same as concatenation operator.
ComandoCriarTabela is a global Variable.
The log returned to me, when I used the command line you told me to is:
Run command: sqlcmd -S srv-tsbd\sql2k -d TS_F_SQL2K_20112 -U homol -P tssql2k -i D:\Scripts\Scripts_Criacao_Banco\1.LGComponentes\SQLServer\1.sql -o D:\Scripts\Logs\1.txt
Exactly what I need.
Again: this command line when used like below works perfectly.
Call TestedApps.cmd.Run(1, True)
Call Aliases.cmd.wndConsoleWindowClass.Keys(ComandoCriarTabela&"1.LGComponentes\SQLServer\1.sql -o " &DirLog&"1.txt[Enter]Exit[Enter]")
Just for you guys don't forget. I'm trying to make my script wait until "EXIT" is typed on CommandPrompt to go to the other script's line. The way I'm doing isn't working OK for me. Before the first CommandPrompt close (and execute enterily), the other script line starts another CommandPrompt and it all gets wrong.
If you guys want. I may attach my entire script here with .zip format. Just let me know.
Thanks you all.