Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / command prompt /dos

Author
Message
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 23rd Sep 2010 03:49
using dbpro.
I need to be able to interact with a command prompt/dos window executing commands i can do this with a batch file but am trying to avoid it is there another way?

A child's dream never dies.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd Sep 2010 07:17
You can use the EXECUTE FILE command with CMD.EXE. If you use /c <command> it'll run then close the DOS window or /k <command> to keep the window open after the command.

This will do a wide directory listing:


Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 23rd Sep 2010 07:33
was busy playing with this while grog posted his. nonetheless:


Virtual Nomad @ California, USA . DBPro V7.5
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
Neuro Fuzzy
17
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 23rd Sep 2010 07:43
I think there's probably some command in some microsoft dll to do this. It's standard enough you probably don't have to worry about compatibility issues... The problem is I don't remember the name of it :S

Login to post a reply

Server time is: 2024-11-24 10:32:31
Your offset time is: 2024-11-24 10:32:31