1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2003
    Sri Lanka
    Rep Power

    Question run dos command in Windows XP

    when I was trying to run mysqldump command as follows ,it was working in the Windows 2000.But it was not working in the Windows Xp.Why is that??Any suggestions???

    dim wsh
    set wsh = createobject("WScript.Shell")
    wsh.Run "cmd /c c:\mysql\bin\mysqldump -h localhost -u xxx -pxxxx XXXX > C:\test.sql
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Melbourne, Australia
    Rep Power

    stupid question... but ...

    is the drive you are referencing C:\ (only reason I ask is cos my machine is partitioned)
    Does the file "test.sql" exist in the C: root (C:\) or exist as part of the path.
    If not try changing your directory to the right directory (folder) and then run "test.sql"

    I know these seem like simple answers, and you've probably thought of them already, but they are the most common reasons files don't run.

    If you've checked all these try ;kbhowto]"Microsoft Knowledge Base

    It sounds more like a system environment thing (such as user permission to run commands etc)
    How can I soar like an eagle when
    I'm flying with turkey's?

IMN logo majestic logo threadwatch logo seochat tools logo