Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > API > shell


Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2009, 04:14 PM
mrgrinch121828 mrgrinch121828 is offline
Newcomer
 
Join Date: Mar 2009
Posts: 1
Default shell


I am attempting to automate the migation of some table from my Access db to MYSQL db using a script created from the MySQL Migration Tools. Below is the function created to run in Shell and the error I get from the shell program when it attempts to execute the script. Any help would be great.

Thanks

Function OpenGRTShell() As Boolean

Dim stAppName As String

stAppName = "C:\Program Files\MySQL\MySQL Tools for 5.0\grtsh.exe C:\Inetpub\wwwroot\injuries.lua"
Call Shell(stAppName, 1)

End Function

Error says:
error executing script: c:\Inetpub\wwwroot\injuries.lua:8: attempt to index global 'Migration' <a nil value> / >
Reply With Quote
  #2  
Old 04-05-2009, 03:08 PM
Jonny's Avatar
Jonny Jonny is offline
Senior Contributor
 
Join Date: Jun 2003
Location: Birmingham, England, UK
Posts: 821
Default

This is not an error with your VB code. You should check on a MySQL forum for this one.
__________________
Regards
John, jlsd.co.uk
Reply With Quote
  #3  
Old 04-05-2009, 04:15 PM
Qua's Avatar
Qua Qua is offline
Impetuous & volatile

* Expert *
 
Join Date: Apr 2005
Posts: 2,177
Default

Looks like there a bug in your LUA code. Properly a variable that hasn't been initialized since you're trying to use a null value. If you're not aquinted with LUA then I suggest you kindly ask for a help on a LUA Forum
__________________
Reading is the foundation for all knowledge - Unknown.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->