Click here to Skip to main content
15,905,325 members

Comments by XamBEE (Top 54 by date)

XamBEE 4-Aug-16 3:25am View    
This is the method of writing text into CSV file.
XamBEE 4-Aug-16 3:22am View    
<html>
<script type="text/javascript">
function createCSV() {
csvRows = [["label first","details of label 1"],["label sec","details of label 2"],["label 3","details of label 3"],["label 4","details of label 4 and 3"],["label 5","details of label 5"],["label 6","details of label 6"],["label 7","details of label 7"],["label 8","details of label 8"],["label 9","details of label 9"]];

var csvString = csvRows.join("%0A");
var a = document.createElement('a');
a.href = 'data:attachment/csv,' + csvString;
a.target = '_blank';
a.download = 'myFile.csv';
document.body.appendChild(a);
a.click();

}
</script>
<body>
<form action="" method="post">
<input type="button" value="Create" >
</form>
</body>
</html>
XamBEE 4-Aug-16 3:21am View    
Deleted
<html>
<script type="text/javascript">
function createCSV() {
csvRows = [["label first","details of label 1"],["label sec","details of label 2"],["label 3","details of label 3"],["label 4","details of label 4 and 3"],["label 5","details of label 5"],["label 6","details of label 6"],["label 7","details of label 7"],["label 8","details of label 8"],["label 9","details of label 9"]];

var csvString = csvRows.join("%0A");
var a = document.createElement('a');
a.href = 'data:attachment/csv,' + csvString;
a.target = '_blank';
a.download = 'myFile.csv';
document.body.appendChild(a);
a.click();

}
</script>
<body>
<form action="" method="post">
<input type="button" value="Create" >
</form>
</body>
</html>
XamBEE 4-Aug-16 3:20am View    
Deleted
<html>
<script type="text/javascript">
function createCSV() {
csvRows = [["label first","details of label 1"],["label sec","details of label 2"],["label 3","details of label 3"],["label 4","details of label 4 and 3"],["label 5","details of label 5"],["label 6","details of label 6"],["label 7","details of label 7"],["label 8","details of label 8"],["label 9","details of label 9"]];

var csvString = csvRows.join("%0A");
var a = document.createElement('a');
a.href = 'data:attachment/csv,' + csvString;
a.target = '_blank';
a.download = 'myFile.csv';
document.body.appendChild(a);
a.click();

}
</script>
<body>
<form action="" method="post">
<input type="button" value="Create" >
</form>
</body>
</html>
XamBEE 29-Jul-16 5:04am View    
I did not get you solution unfortunately because I dont know much about batch file. Would be nice if you elaborate it bit more.
I also rephrased my question..