🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4132

Executing Windows Command Line commands from Borland.

#4132
From: Matt Barnes
Date: Mon, 20 Mar 2006 19:51
6 lines
1224 bytes
I am trying to execute some commands from that I can use in the command line of Windows in order to connect to a network drive and ask for a user name and password. I have a batch file with these commands in it (the "net use" command more specifically).

Is there a way to call these commands directly from Borland C++ or is there a way to call batch files within a program's execution. Any help would be greatly appreciated, thanks.

-Matt
Technical Details
Message-ID: <441f15cf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c70447e0965bc2c5,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Matt Barnes" <barnesm@lexmark.com>
Sender: "Matt Barnes" <barnesm@lexmark.com>
Reply-To: "Matt Barnes" <barnesm@lexmark.com>
Subject: Executing Windows Command Line commands from Borland.
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 192.146.101.26     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <441f15cf$1@newsgroups.borland.com>
Date: 20 Mar 2006 12:51:27 -0700
X-Trace: newsgroups.borland.com 1142887887 207.105.83.66 (20 Mar 2006 12:51:27 -0700)
Lines: 6
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail