Blog Pro de Jean-Baptiste HEREN

Notes d'un consultant Freelance en Informatique

To content | To menu | To search

Convertir un fichier csv en xls en ligne de commande : mycsv2xls.vbs

Suite à un besoin ponctuel d'intégration de données, j'ai développé un petit script en VB, utilisant l'application Excel pour faire l'import automatique de fichiers délimités par des points-virgule dans un fichier Excel.

En effet, une source Excel dans Microsoft SSIS est beaucoup plus facile d'emploi qu'un fichier plat, notamment lorsque le nombre de colonnes dans le fichier n'est pas fixe.

Le Script en question pourra être exécuté dans SSIS par l'utilisation d'un 'Execute Process Task'.

le programme mycsv2xls pour Windows fonctionne comme suit :

mycvs2xls.vbs source_full_path target_directory

Jean-Baptiste Heren

Author: Jean-Baptiste Heren

Stay in touch with the latest news and subscribe to the RSS Feed about this category

Comments are closed



You Might Also Like

result_crosstab.png

Cognos Report : Display a different measure in row for the aggregated column

Following tip is when you use a Relational Datamodel (DMR). In a Cognos Report crosstab, If You need to Display different measure in the aggregated column, you can do it using a simple if-then-else...

Continue reading

Cognos 8 - convert a member unique name from one hierarchy to another

If you need to build any report or Event studio Query using the same data from different packages; and you want to prompt just once. You can convert the member unique name from one hierarchy to...

Continue reading