안녕하세요ㅠㅠ 프린터 큐에 특정한 문서들을 순서대로 큐에 넣고 싶어 Powershell을 사용하였습니다. Invoke Powershell 엑티비티를 넣은 후 commandtext 라인에만 명령어를 삽입해주었습니다.
“Start-Process -FilePath test_1.txt -WorkingDirectory C: -Verb Print”
그런데 자꾸 아래와 같은 에러가 납니다.ㅠㅠㅠ 제가 뭘 잘못했을까요?
Source: Invoke Power Shell (Throw)
Message: The term ‘Start-Process -FilePath test_1.txt -WorkingDirectory C:-Verb Print’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Details of Error
Exception Type: System.Management.Automation.CommandNotFoundException
An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.Management.Automation.CommandNotFoundException: The term ‘Start-Process -FilePath test_1.txt -WorkingDirectory C:-Verb Print’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)