Action script failed with some error character which is not allowed

Hi,

// Disable wow64 redirection on x64 OSes
action uses wow64 redirection {not x64 of operating system}

parameter “folder” = “c:\temp”

if{exists file (parameter “folder”)(output.txt) whose (exists line whose (it > “0”) of it)}

Exit 100
endif

STATUS: Running action…
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system}
Command succeeded parameter “folder” = "c:\temp"
Command failed (This expression contained a character which is not allowed.) if {exists file (parameter “folder”)(output.txt) whose (exists line whose (it > “0”) of it)}

— Result —
Evaluation failed!

please try this -

// Disable wow64 redirection on x64 OSes
action uses wow64 redirection {not x64 of operating system}

parameter "folder" = "c:\temp\"
Parameter "combine" = "{parameter "folder"}output.txt"

if {exists file (parameter "combine") whose (exists line whose (it > "0") of it)}
Exit 100
endif

Failed with exit code 100

STATUS: Running action...
Wow64 redirection disabled. action uses wow64 redirection {not x64 of operating system}
Command succeeded parameter "folder" = "c:\temp\"
Command succeeded parameter "combine" = "c:\temp\output.txt"
Command succeeded (100) exit 100

--- Result ---
Evaluation failed!

if output file is 100% part of temp then we should try just single parameter like below -

parameter "folder" = "c:\temp\output.txt"

1 Like

thanks for your reply VK

1 Like

In addition to @vk.khurava’s comment on the temp path/filename, this script is using “smart quotes”, probably from copy/paste from this forum or Microsoft app. That’s the illegal character.
Be sure to replace all your quotes with standard quotes.

3 Likes

sure @JasonWalker