We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

PowerShell Script Won't Run

MonBrazier
8 - Asteroid

Hi everyone

 

I have a PowerShell script that add a specific file to a zip folder in a specified directory.

 

The script works perfectly when running in PowerShell itself... however, when running in Alteryx, the script does nothing - and I mean nothing!

There's no error, and it doesn't actually do what the script is meant to do.... what am I doing wrong???

 

This is what is (essentially) contained in the ps1 file:

Compress-Archive -LiteralPath '& "\\--network drive full path--\test.txt"' -DestinationPath '& "\\--destination network drive full path\testing.zip"'

 

Attached is the run command tool set up - let me know what you think!

Format of the command argument in run command tool:

 

'& "\\--network drive full path--\PowerShellScript.ps1"'

 

0 REPLIES 0
Labels
Top Solution Authors