🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Passing a Variable to CopyFile

#7456
From: Bob Gonder
Date: Mon, 31 Jan 2005 16:45
12 lines
1259 bytes
Pat wrote:

>     char drive;   //I've also tried AnsiString with errors
>     drive = DriveCombo->Drive;
;
>      char *From = "C:\\Backup\\Data\\*.zip\0";
>      char *To = "E:\\\0";    // <-Need to be able to define the drive here

	char	To[ MAXPATH+1 ] = "E:\\";
	To[0] = drive;

>      SHFILEOPSTRUCT op;
Technical Details
Message-ID: <9rnsv0pbhd6sfcipog2h6odbk8cctl61p9@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41fe59c2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c07811462fe8d980
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Passing a Variable to CopyFile
Date: Mon, 31 Jan 2005 08:45:57 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <9rnsv0pbhd6sfcipog2h6odbk8cctl61p9@4ax.com>
References: <41fe59c2$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.147.158
X-Trace: newsgroups.borland.com 1107189955 67.77.147.158 (31 Jan 2005 08:45:55 -0800)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail