Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old November 9th, 2004, 02:42 PM
DTank DTank is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 6 DTank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 10 m 46 sec
Reputation Power: 0
Copying csv files

I'm trying to copy a csv file in VB.net using "CopyTo()" it copies the file but.... it copies none of the data,
also when I try to open the file in Access an error pops-up stating that Access is "unable to read file".

Thanks in advance for any help!

Reply With Quote
  #2  
Old November 10th, 2004, 10:12 AM
DTank DTank is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 6 DTank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 10 m 46 sec
Reputation Power: 0
Quote:
Originally Posted by DTank
I'm trying to copy a csv file in VB.net using "CopyTo()" it copies the file but.... it copies none of the data,
also when I try to open the file in Access an error pops-up stating that Access is "unable to read file".

Thanks in advance for any help!

Okay I've now got it copying a file (had to copy it then overwrite), but if the file is smaller than 1kb it won't copy (same problem as above).
Anybody have any insight into copying small files? The size shouldn't matter should it?

Reply With Quote
  #3  
Old November 10th, 2004, 04:23 PM
Darius Darius is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 Darius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 4
Have you tried shell (I don't know .net but in VB6)?

if command.com exists

shell "c:\command.com /C copy file1 file2 > NULL"

if not

shell "c:\Windows\system32\cmd.exe /c copy file1 file2 >Null"

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Copying csv files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway