web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Open Word fails using ...
Power Automate
Unanswered

Open Word fails using PAD - Filename contains %Variables%

(0) ShareShare
ReportReport
Posted on by 95

Hi. Newbie.

 

I am building a flow that increases the filename and folder number of a series Word documents by 1 from the current folder list. I have managed this section and it works great.

 

I want to then open word and have it open the document for the user. I have tried (unsuccessfully) to use a command line.

"Launch Application"

I enter the path to my copy of Word "...path...\winword"

then in the command line box  -   /t "%Newfile%"

 

%Newfile% variable result is written below in a message display box, so it is 100% the correct value I want, but word just says the file is moved or deleted. If I check it is sitting there in the folder, so not sure what is wrong. If I statically put the path address to a file in to the /t "path" command line and it then works fine. Any suggestions why I can not get the variable to work?

 

Pmorg73_0-1617158578952.png

 

I have the same question (0)
  • fraenK Profile Picture
    2,125 on at

    The file path has spaces, you need to put it between quotation marks, I guess

  • Pmorg73 Profile Picture
    95 on at

    Yeah i had put the variable between them like this   

     

    /t "%Newfile%"

     

    Do you think it is double quote marks?

     

    /t ""%Newfile%""

  • fraenK Profile Picture
    2,125 on at
  • Pmorg73 Profile Picture
    95 on at

    you mean add the "/t" part to a new variable? then enter that in the command line box?

  • fraenK Profile Picture
    2,125 on at

    The whole argument including filename and quotes.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard