473,402 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Changing file extension from REF to CSV

1
Hi there,

It's my 1st participation her..
I make scripts in my work wz a language that is similar to VB

I need a script to Chang file extension from REF to CSV

any help ?

Thx in advance,
Regards
Mar 11 '08 #1
2 904
VBWheaties
145 100+
Hi there,

It's my 1st participation her..
I make scripts in my work wz a language that is similar to VB

I need a script to Chang file extension from REF to CSV

any help ?

Thx in advance,
Regards
Real simple to do thanks to the handy Replace function:

Expand|Select|Wrap|Line Numbers
  1. Public Function FileExtensionREFToCSV(byVal REFFile As String) As String
  2.    FileExtensionREFToCSV = REPLACE(UCASE(TRIM(REFFile)), '.REF', '.CSV') 
  3. End Function 
  4.  
Mar 12 '08 #2
Killer42
8,435 Expert 8TB
Be warned though, this simple routine will stuff up the name if ".REF" appears anywhere else within it. For example, a file name of "SOMETHING.REFERRING.TO.BLAH.REF" would become "SOMETHING.CSVERRING.TO.BLAH.CSV".
Mar 14 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: timothy.williams | last post by:
Hi all. How do I tell distutils to run build_ext before build_py when I try to do a 'python setup.py build' ? I have a C extension using SWIG, and when I build with setup.py, build_py...
1
by: P Jones | last post by:
Hi there, Can someone remind me how to make files with extensions other than .asp execute as .asp files do? I remember doing this by adding an entry to the registry years back, but I can't find...
0
by: rspoonz | last post by:
I have a cgi script from which I wish to return a zipped file with an extension other than .zip (ie .zzz) I am creating a file-type object (cStringIO) and adding some zipped information to it...
0
by: Tim Marshall | last post by:
A2003, Jet application. For a particular app, I'm considering having my back ends have a 6 letter extension, something like TCMMDB. I know Access will open weird extensions as long as the file is...
4
by: Claire | last post by:
There used to be a nice api call to change a file extension. Is there a class that will do this in c# .net? The FileInfo class will return some information about a queried file. Yes I can query...
5
by: Winston | last post by:
Hi Group, in my aspx page there is an Response.Redirect to a file called myfile.csv. The file consists of plain text with comma separated values. I want that the browser opens the save as dialog...
2
by: John Dalberg | last post by:
The below html validates correctly on w3.org's html validator when the file has an html extension. When the same file gets an aspx extension, I get the error below from the validator. This tells me...
5
by: pb | last post by:
Do anyone know how to change the .aspx extension to something else, say ..sssx, for all or part of a ASP.NET 2.0 site? I recall a Microsoft article on this some time ago, but I cannot locate it.
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
2
by: nicklz55 | last post by:
okay, ive looked literally on google for a whole hour trying to find the code but it never works out properly. basically what i want is a textbox that the user enters the location of the file and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.