Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Need help with VB script  (Read 2130 times)

0 Members and 1 Guest are viewing this topic.

setunol

    Topic Starter


    Starter

    Need help with VB script
    « on: July 07, 2008, 02:05:04 PM »
    Hi all, I have a question about VB script that I hope you guys can give me some help on.  Here's the situation I ran into. 

    I am creating a program that's needs to be run on both Win2k3 32-bit and 64-bit.  The program works fine on the 32-bit Win2k3.  But when I runs it on the 64-bit ED, it broke.  What I have is a vbscript that calls and try to execute a cmd file.  It contains "diskpart" and "shutdown".  Those are the two commands that has problem when I run the script.  It says that those two commands are not recognized as an internal or external command, operable program or batch file.  But when I just type in those commands on the command line without the .cmd file, they works just fine. 

    Can anyone give me some pointers in about how to get this fixed or a way around it?  Thanks for the help.

    Michael