WINDOWS to UNIX : xls to csv


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers WINDOWS to UNIX : xls to csv
# 1  
Old 12-15-2007
WINDOWS to UNIX : xls to csv

Hi,
I need to ftp a .xls file from WINDOWS to UNIX. When I do it, the file coversion doesn't happen(??) or UNIX doesn't recognixe this format I know not. But there will be junk values in the ftp'd file.

Note: The ftp will be done by a script and I don't think we could place a WINDOWS script on this server to convert the file and then ftp to our UNIX server.

Please suggest...

Thanks and regards,
Gideon.
# 2  
Old 12-15-2007
To transfer the file verbatum then use binary, however what application are you using on unix that can understand XLS files?

As a hint, go to a command prompt on Windows and do "type name.xls" to print the file out, that is what unix will see.

I personally use a OLE program that drives Excel to save the document as a tab delimited file, then transfer those to UNIX.
# 3  
Old 12-15-2007
Hey,
I did not find the file as .xls in the WINDOWS command prompt but a .txt file though in reality it is an .xls file. Sounds strange right ?

But when I ftp'd the file I got the data as it was in the xls.

Thanks for the "hint". Worked for me Smilie. Nevertheless if you could let me know more on OLE would be great.

Thanks and Regards
Gideon.
# 4  
Old 12-15-2007
Quote:
Originally Posted by preethgideon
Nevertheless if you could let me know more on OLE would be great.
As in "Ole Automation", driving Excel using, say, Visual Basic, or C++ in my case.
# 5  
Old 12-18-2007
Error Error Error,

Whatever I spoke in my immidiate previous post was incorrect. There was another .txt file in the same path, which was ftp'd and not the .xls

So sadly the problem still remains unresolved Smilie

Porter,
Is it a software or something ??

Thanks and regards,
Gideon.
# 6  
Old 12-18-2007
Quote:
Originally Posted by preethgideon
Porter,
Is it a software or something ??
Yes, basically you create an object of "Excel.Application", then get the "Workbooks" object from that.

You tell the "Workbooks" object to

1. "Open" "ReadOnly"=TRUE the file with a fully qualified path.

2. "SaveAs" with "CreateBackup"=FALSE, "FileFormat"=-4158, and "Filename" as the target fully qualified filename.

3. "Close" with "SaveChanges"=FALSE

That should do the trick.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Csv to xls

Hello I have a script which converts log to csv. Now I need to have xls. Is there any easy way/command which can convert csv to xls?:confused: preferably just using bash and not perl,... is it possible? (1 Reply)
Discussion started by: frhling
1 Replies

2. Shell Programming and Scripting

Oracle to CSV to XLS

I would like to know if have one way with read table from oracle converter in CSV o TXT and After converter in XLS or spreedsheet Thanks so much JAvier (3 Replies)
Discussion started by: javeiregh
3 Replies

3. UNIX and Linux Applications

Tool for Convert XLS into CSV in UNIX

Hi I wanted to convert some XLS files into CSV format in my UNIX box. Unix box is handling very important data which are related to data warehouse.It is fully optimized by installing minimum packages since server need more resources to handle reports generating. Just for convert XLS files... (6 Replies)
Discussion started by: luke_devon
6 Replies

4. Shell Programming and Scripting

CSV to XLS

Ok, every morning at my office we send out excel sheets to Economy people with statistics for yesterdays trading. All the trading run's in Redhat or Solaris environments. We run a script on a Redhat server whitch generates the stats in CSV format. After we download we open it in Excel and... (3 Replies)
Discussion started by: chipmunken
3 Replies

5. UNIX for Dummies Questions & Answers

Windows CSV file to unix csvfile

how do i copy a windows csv file (client) to a unix csv file ie in the correct unix format? (1 Reply)
Discussion started by: zhegal
1 Replies

6. Shell Programming and Scripting

how to convert .xls to .csv

Hi, I have problem..How to convert .xls file to .csv.. Plz help me for this problem.. (1 Reply)
Discussion started by: varma457
1 Replies

7. Shell Programming and Scripting

converting xls file to txt file and xls to csv

I need to convert an excel file into a text file and an excel file into a CSV file.. any code to do that is appreciated thanks (6 Replies)
Discussion started by: bandar007
6 Replies

8. UNIX for Dummies Questions & Answers

Unix script to convert .csv file to.xls format

I have a .csv file in Unix box i need a UNIX script to convert the.csv files to.xls format. Its very urgent please help me. (1 Reply)
Discussion started by: moon_friend
1 Replies

9. Shell Programming and Scripting

xls to csv

how to convert a xls file into .csv file? is tghere any command in unix for that? please help thanks (3 Replies)
Discussion started by: infyanurag
3 Replies

10. Shell Programming and Scripting

Converting csv to xls

Hi, Can anyone tell the option to change the file type in unix. i.e. if a file is in csv(Comma Separating Values) format, it should be changed to xls(ordinary MS-Excel) format. But renaming command is not changing to correct file format. Thanks in advance, Milton. (1 Reply)
Discussion started by: miltony
1 Replies
Login or Register to Ask a Question