Re: calling a dos command in a program
- From: "Tom Serface" <tserface@xxxxxxx>
- Date: Fri, 13 Oct 2006 22:21:00 -0700
You could also use SHFileOperation to do this kind of thing.
Tom
"Ron H" <rnharsh@xxxxxxxxxx> wrote in message
news:45301d95$0$15917$8d2e0cab@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Look up system or _wsystem if you must use a command
int system( const char *command );
int _wsystem( const wchar_t *command );
"Chris Baker" <ChrisBaker@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8790E041-B737-4B2A-9CDD-96950A694C54@xxxxxxxxxxxxxxxx
I want to call a command like "del xxx.txt" from within a vc++ (consoleapp)
program.
I've tried shellexecute but lo luck (below).
ShellExecute(NULL,_T("open"), _T("del"), _T("chb.txt"),_T(""), SW_SHOW);
-----------------
www.Newsgroup-Binaries.com - *Completion*Retention*Speed*
Access your favorite newsgroups from home or on the road
-----------------
.
- References:
- Re: calling a dos command in a program
- From: Ron H
- Re: calling a dos command in a program
- Prev by Date: Re: Converting an MFC app from VS 6.0 to 2005 - any checking tools available?
- Next by Date: Re: locally centered modeless dialogs
- Previous by thread: Re: calling a dos command in a program
- Next by thread: Re: calling a dos command in a program
- Index(es):
Relevant Pages
|