Welcome, Guest. Please login or register.
May 16, 2012, 11:24:25 pm

Login with username, password and session length
Welcome to the systemhound user community
* Home | Help | Login | Register
+  systemhound user community
|-+  systemhound
| |-+  systemhound 2007 - FAQs (Moderator: Dee)
| | |-+  Automating export of CSV data
« previous next »
Pages: [1] Print
Author Topic: Automating export of CSV data  (Read 3740 times)
Nish
Full Member
***
Gender: Male
Posts: 200


hardware and software auditing with systemhound


« on: February 28, 2003, 07:37:43 am »

I would like a way to automate the export of data from the Systemhound database into Excel (or some other format) on, for example, a nightly basis.

Set up a job in Windows Task Scheduler to do this. The CSV Export tool has command line options, so create a batch file and call this. For example:

"C:\Program Files\systemhound\utils\shexport" -s -hwfile -swfile

Save the above line as export.bat (i.e., create a txt file in Notepad with the above line and save the file as export.bat), and then create a new task in Windows Sheduler and call this file.
« Last Edit: November 12, 2004, 05:15:08 am by Nish » Logged
epolerecky
Newbie
*
Posts: 2

I love systemhound!


« Reply #1 on: February 28, 2006, 08:03:01 am »

Using the command: "C:\Program Files\systemhound\utils\shexport" -s -hwfile -swfile

What flags do I pass to shexport to specify a delimiter to use?

My CVS files are being exported without a delimiter which makes importing into SQL very complicated.
Logged
Justin
Jr. Member
**
Posts: 7


Systemhound Support


« Reply #2 on: March 01, 2006, 07:19:22 am »

Hi Epolerecky

What you need to do is use the standard line of

shexport -s -delimiter , -hwfile -swfile

if you use the , after -delimiter it will sort the csv file correctly and you should be able to use the sql import tool to bring the data in.

Thanks

Justin
Logged

Systemhound Support Contract.
Saves you time and money.
Get answers to your questions quickly and get the latest updates free of charge.
contact support@softwareinnovations.co.uk for further info
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!