script-server icon indicating copy to clipboard operation
script-server copied to clipboard

Import of CSV

Open billybenson opened this issue 3 years ago • 4 comments

Hi - is there a way to import a csv so it can be used when executing the script? I want to use data in the csv for my script. How is best to do this? Thanks

billybenson avatar Jun 16 '21 08:06 billybenson

Hi @billybenson you could make an "upload" parameter: https://github.com/bugy/script-server/wiki/Script-config#file_upload Then a user would be able to upload the csv file The script would get the path to the uploaded file as an argument

bugy avatar Jun 16 '21 09:06 bugy

Hi - thanks for replying. But then how do we use this CSV as a variable in a Powershell script if the temp directory changes ?

billybenson avatar Jun 16 '21 11:06 billybenson

The shell script will always get an absolute path to the new uploaded file

billybenson @.***> schrieb am Mi., 16. Juni 2021, 15:19:

Hi - thanks for replying. But then how do we use this CSV as a variable in a Powershell script if the temp directory changes ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bugy/script-server/issues/462#issuecomment-862295036, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJXPJJYGSFNQZVGRDNEHGLTTCCC3ANCNFSM46Y47BQA .

bugy avatar Jun 16 '21 11:06 bugy

@billybenson did you manage to find a way how to use the csv parameter?

bugy avatar Jul 20 '21 13:07 bugy