Computer Hope

Microsoft => Microsoft Windows => Windows Server => Topic started by: pyanko on May 11, 2010, 02:38:37 PM

Title: Bat file failure
Post by: pyanko on May 11, 2010, 02:38:37 PM
I'm executing a DOS bat file on Windows 2003 VM (virtual machine) from a Power Builder application.  On the development VM the bat file executes OK.  On the production VM, the bat file fails.  It does not appear to be a permissions problem.  But, if you go to a DOS prompt on that machine, not all DOS commands are available.  Is there something that would make the DOS environments different on the two machines?

Thanks
Title: Re: Bat file failure
Post by: BC_Programmer on May 11, 2010, 03:39:45 PM
Is there something that would make the DOS environments different on the two machines?

Different OS?
Title: Re: Bat file failure
Post by: Sid on May 14, 2010, 08:47:50 AM
Have you tried running the BAT file inside an already opened command prompt to see where/why it fails?

What is the BAT doing?
Title: Re: Bat file failure
Post by: marvinengland on May 14, 2010, 09:12:52 AM
Is there something that would make the DOS environments different on the two machines?
google the missing commands and download to the machine missing the commands.

or

copy the the commands from the good machine to a flash disk and upload to the machine missing the commands.

and/or
run sfc /scannow
Title: Re: Bat file failure
Post by: Sid on May 18, 2010, 09:37:08 AM
copy ... to a flash disk and upload to the machine missing the commands.

That could be difficult on a VM, depending on the virtual host application.
Title: Re: Bat file failure
Post by: killerb255 on May 26, 2010, 09:35:19 AM
copy the the commands from the good machine to a flash disk and upload to the machine missing the commands.

Copying from the guest to the host using the virtual network and a network share would be an option as well. 

That could be difficult on a VM, depending on the virtual host application.

True.  I know Hyper-V doesn't support USB.  Windows 7's VirtualPC supports it, but older versions do not.  VirtualBox supports it.  I don't know about VMWare these days.
Title: Re: Bat file failure
Post by: Sid on May 26, 2010, 10:06:09 AM
Copying from the guest to the host using the virtual network and a network share would be an option as well. 

True.  I know Hyper-V doesn't support USB.  Windows 7's VirtualPC supports it, but older versions do not.  VirtualBox supports it.  I don't know about VMWare these days.

I think VMWare handles USB quite well, but I don't know from first hand experience.
Title: Re: Bat file failure
Post by: BC_Programmer on May 26, 2010, 12:24:54 PM
VMWare handles USB better then any other Virtual Machine I've used.
Title: Re: Bat file failure
Post by: Salmon Trout on June 05, 2010, 01:34:30 AM
it might help if we could be told what commands fail! Possibly the development VM has Resource Kit tools installed?