Computing.Net > Forums > Programming > Clearing or creating file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Clearing or creating file

Reply to Message Icon

Name: Mandy
Date: December 18, 2005 at 15:01:53 Pacific
OS: XP
CPU/Ram: Pentium 4
Comment:

Hi,
I hope I have put this is the right forum. I'm just looking for a bit of help with finding what should be a simple solution..
I'm trying to create a batch file that allows me to either clear the contents of an existing excel file, or alternatively that allows me to delete the excel file and then create a new one with the same name.
Can someone please help me out with this?
Many thanks,
Mandy



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: December 18, 2005 at 16:38:59 Pacific
Reply:

Hi Mandy,

type nul > filename.xls


If at first you don't succeed, you're about average.

M2


0
Reply to Message Icon

Related Posts

See More


Java noob question Shell Scripting



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Clearing or creating file

How to edit a .bat file or text file?? www.computing.net/answers/programming/how-to-edit-a-bat-file-or-text-file/2682.html

PERL create files w/ variable names www.computing.net/answers/programming/perl-create-files-w-variable-names/16666.html

Setup prog or batch file www.computing.net/answers/programming/setup-prog-or-batch-file/125.html