Converting from WinRunner - command line executable - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Converting from WinRunner - command line executable (/Thread-Converting-from-WinRunner-command-line-executable) |
Converting from WinRunner - command line executable - tmcmillin - 04-24-2008 We are implementing/converting from QTP from WinRunner and below is how we ran cleanup scripts (oracle) in WR: invoke_application("ExportCleanup.cmd","user password database","K:\\Database_Cleanup_Scripts\\",SW_HIDE); I was looking for an equivalent in QTP - so we don't have to redo totally everything... I have this that works so far, but it 1) doesn't use what we already have, 2) doesn't scale well for some cleanup scripts that are 20-30 lines long... Code: Sub DBCleanup(KScriptName, DSN, uName, uPwd) I tried the wscript.shell object and didn't get any errors, but the data was not removed from the database properly: Code: Sub Test Any ideas? |