Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 17th, 2003, 03:17 PM
Ned Ned is offline
Authorized User
 
Join Date: Jun 2003
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default FileCopy

Hi,
Whenever I use "FileCopy" command to copy any file onto floppy diskette, VB continues to create temp files on that diskette. If we take the diskette out from the drive then program gives an error on each command.
Any help is appreciated.

-Ned
__________________
-Ned
 
Old July 17th, 2003, 03:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. can you explain a little more what's your problem??

i use file copy all across my app. and dont have any problem with it...

Gonzalo Bianchi
 
Old July 17th, 2003, 04:12 PM
Ned Ned is offline
Authorized User
 
Join Date: Jun 2003
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Gonzalo,
FileCopy "C:\Temp\Test.Txt", "A:\"
Keep in mind Floppy A:\ is selected from the command dialog control.
After this command whatever user do like display a report, try to open another screen within the same application, it first do something on the floppy drive and then perform the action. When I looked at the floppy through explorer, I found tones of .TMP files with 0 bytes.
This problem go away if we copy any file onto hard drive using the command dialog control.


Quote:
quote:Originally posted by gbianchi
 hi there.. can you explain a little more what's your problem??

i use file copy all across my app. and dont have any problem with it...

Gonzalo Bianchi
-Ned
 
Old July 17th, 2003, 04:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

ok.. try this..

after you copy the file, do a chdrive and a chdir so your app. still look for things in your app. path... i have the same problem savings .zip files and has fixing it doing that..

HTH...

Gonzalo Bianchi
 
Old July 17th, 2003, 04:23 PM
Ned Ned is offline
Authorized User
 
Join Date: Jun 2003
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by gbianchi
 ok.. try this..

after you copy the file, do a chdrive and a chdir so your app. still look for things in your app. path... i have the same problem savings .zip files and has fixing it doing that..

HTH...

Gonzalo Bianchi
-Ned
 
Old July 17th, 2003, 04:29 PM
Ned Ned is offline
Authorized User
 
Join Date: Jun 2003
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Gonzalo,
Thanks very much, "ChDrive" is wonderfull.

-ned
Quote:
quote:Originally posted by gbianchi
 ok.. try this..

after you copy the file, do a chdrive and a chdir so your app. still look for things in your app. path... i have the same problem savings .zip files and has fixing it doing that..

HTH...

Gonzalo Bianchi
-Ned





Similar Threads
Thread Thread Starter Forum Replies Last Post
FileCopy permission problem [email protected] ADO.NET 2 June 18th, 2003 02:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.