Open Word Document from Powershell script

I've created a simple Powershell menu script to launch a few applications with but need to open some word docs as well from this script. I've tried several options and can get word to open but have not been able to get it to open a specific document. Just
need the proper code to launch MS word and open a specific word document located on my network share. Any takers??????? :)

You can just specify the path to the Word file and it should open it as long as the file associations are correct.
"\\server\share\path\wordfile.docx"
If you found this post helpful, please "Vote as Helpful". If it answered your question, remember to "Mark as Answer".
Rich Prescott | Infrastructure Architect, Windows Engineer and PowerShell blogger | MCITP, MCTS, MCP
[Blog] Engineering Efficiency | [Twitter]
@Rich_Prescott | [Powershell GUI]
Client System Administration tool | [PowerShell GUI]
New AD User Creation tool

Similar Messages

  • I can't open word documents from Finder

    I can't open word documents from Finder

    If you mean "I can't double click a *doc file and make word open" then you highlight the file and do a command-I (or get info).  When the window comes up, change the "open with" parameter.  You can also right click and select "other"

  • Open word document from oracle forms 10g

    Hi,
    Could any one please guide me how to open a word document from forms 10g on client machine (windows). My word document resides on application server (unix).
    Thanks for the help in advance.

    I tried that, but it doesn't work.
    What I have done is, I have written a java code that has a function ope_word that opens up a word document. I have created jar out of it called wordbean.jar.
    Add this wordbean.jar in $ORACLE_HOME/forms/java directory and also added in the formsweb.cfg file (archive_jini=wordbean.jar)
    Then I created a form and usinf fbean.register and fbean.invoke functions of forms, I am trying to call wordbean.jar.
    F.bean.register is registering all the components of wordbean.jar but it is not opening the word document.
    Could you please help ??

  • HOW TO OPEN WORD DOCUMENT FROM JAVA???

    hi everyone! Can you please help me to come with this problem? Let me to set my main target I want to achieve:
    1) In my program user should first press a button;
    2) Then already created Word Document should be opened (I DO NOT NEED to open that Word Document in Java or something like JField). Just simply it should be opened as a Microsoft Word Document.
    I DO NEED YOUR HELP! PLEASE HELP ME....!

    Running cmd using the exec is also a windows only solution, there is no "more" or "less" it that solution compared to the rundll.
    Since word is a windows format its pretty obvious that the application is ran under windows platform.
    If you are running on a different platform (maybe using open office you can open word documents, i'm not sure) you might want to use the JDIC library (https://jdic.dev.java.net/) which enables you to open/edit/browse such files using the default viewer/editor/browser of the system you are working on.
    Look at the org.jdesktop.jdic.desktop.Desktop object for these methods.
    You can also find the Desktop object in J2SE6 but its still in beta.

  • Need to open word document from flash projector on Windows and Mac

    Hello,
    I'm creating a flash program that will be put on a dvd. And the dvd should function well on both windows and mac.
    I'm trying to open a word document on click of a button. I used geturl but it works only on windows but on mac it only opens a blank browser.
    This is urgent and would be really grateful if I get any help to resolve this problem
    Thanks,
    Sunira

    I kind of doubt you could get Safari to open MS Office files. Short of actually getting MS Office for the Mac, the most workable option might be to get NeoOffice/J (a Mac-friendly version of OpenOffice from http://www.planamesa.com/neojava/en/index.php. It won't display some Office files 100% correctly (depending on how complex they are) but it can open and save them.

  • How to open word document from application server?

    hello ,
    I want to open a word document that is placed on the application server.
    the function module 'ws_execute' works fine for displaying documents placed on ur local file system. But if i want to open from application server, what needs to b done?
    i m referring to the following demo program 'SAPRDEMOOFFICEINTEGRATION'
    is this the correct reference or there is some other way to do the same?
    kindly help.
    Regards,
    Roshani

    Hi Roshani,
              The solution is like this.
    1> Execute - this is the solution to your program. The file is generated and put in the Application Server for the data to be sent by some means to the intended Place.
    2> To Display/View - This is for the person (who runs the program) to view if the output generated is correct or not.
             So to accomplish this use the same internal table for both Open Dataset and Gui download.
    Open dataset puts data onto the Application server and Gui_download puts the data onto the Desktop or Presentation server for the user to see the data thats fetched.
    So use them as directed to achieve the desired output.
    Reward Points.
    Thanks,
    Tej..

  • Open word document from APEX

    Evening folks!
    I am new to APEX and I've struggled thus far so this forum has been a life-saver.
    I'm hoping there is a solution to my new problem ;-)
    I have successfully exported data from APEX to csv (HUGE thanks to the spendolini blog) and I can use that csv file as a data source for a mail-merge word document, but I have a couple of questions:
    1. I'd like the csv file to save to a specified location without prompting the user to open, save etc. Is this possible?
    2. I'd like to open a specified mail-merge word document automatically from within my APEX application. Is this possible?
    To explain, ideally I would like the user to click on the export button and it save the data to a specified csv file automatically and then automatically open a specified mail-merge word document.
    Many thanks in advance.
    Winnie

    Exporting a .csv to a directory instead of prompting user to save the file is done using
    a similar function:
       PROCEDURE export_to_csv (p_directory IN VARCHAR2, p_filename_in VARCHAR2)
       IS
          v_file   UTL_FILE.file_type;
          CURSOR c_emp
          IS
             SELECT empno, ename, job
               FROM emp;
       BEGIN
          v_file := UTL_FILE.fopen (p_directory, p_filename_in, 'W');
          UTL_FILE.put_line (v_file,
                             'EMPNO' || ';' || 'ENAME' || ';' || 'MANAGER'
          FOR c IN c_emp
          LOOP
             UTL_FILE.put_line (v_file,
                                c.empno || ';' || c.ename || ';' || c.job);
          END LOOP;
          UTL_FILE.fclose (v_file);
       END export_to_csv;The cursor is hardcoded here. You could enter your select statement also as a
    parameter and create a "generic" solution, for all purposes.
    I don't know much about mail merge. Others will need to help there.
    Denes Kubicek

  • Open Word Document from ITS

    Hey,
    i want to open a Word Document "write protected" via ITS, until now I used the FM ALEWEB_DOWNLOAD". The combination of GUI_DOWNLOAD and WS_EXECUTE works, but the document is opened in the "normal" mode and before the word application opens I get a popup requester window.
    I would like to reach the Word application on the client by OLE2 but i don't know how this works through the ITS?
    Has anybody experience with this problem?
    Thank you!
    Greets
    Christof

    Hey,
    unfortunetaly I get an exception. But I'm not sure if my question was clear enough.
    I want to open an application on a client through the web browser.
    I use generated SAP WEB GUI screens which look like the SAP GUI. A double click on the result list in the web browser should open an application (word) on the client and display a document.
    This works so far with the function module 'ALEWEB_DOWNLOAD' but causes some other problems, thats why I'm trying to find an alternative.
    I think that using the class 'cl_gui_frontend_services' the server looks for the application on the ITS and not on the client. But I'm not sure at all.
    Thanks a lot!
    Christof

  • Cannot open Word documents from CD

    Pages will not open read-only files from CD. While it is possible to copy the files from CD to the hard drive and open them from there, this work-around is not optimal. I use several resource CDs that contain Word files as well as other file types.
    Instead of copying files from a CD in order to be able to open them, it makes much more sense to allow Pages to open them directly from the CD in read-only mode.
    Is there a secret way to enable this behavior? If not, Apple, will you add this functionality to Pages?

    Hello
    It seems that Pages is coded to save an imported file (which is the case for a .doc one) in the folder from which it was imported.
    When the folder belongs to a CD, this can't be done and Pages refuses to import the doc.
    I's not a bug, it's a feature.
    Delberate or not is an other question.
    If this feature is annoying from your point of you, described the problem to the official channel because here we are users trying to help other users.
    We are not members of the Pages team.
    So, *go to "Provide Numbers Feedback" in the "Pages" menu* and describe what you wish.
    Yvan KOENIG (from FRANCE samedi 24 novembre 2007 18:53:10)

  • Can't Open Word Documents from my School's Website

    I am in a class that requires me to download & print off worksheets from the school's online "blackboard" website. My teacher also has a Mac, and she uses Microsoft software for Mac. Since I use Pages instead, can I not open these documents? I also can't open PowerPoint presentations on my MacBook, I am sure this for the same reason.
    If anyone could help me out with this, I would really appreciate it.

    Welcome to Apple Discussions
    Two things you may not have done.
    First, use the Mac OS 10.6.2 combo update. This fixes a problem with the Hoefler Text font that is not fixed using the delta update (10.6.1 > 10.6.2).
    Second, make sure your iWork applications are updated. For iWork '09 it's Pages 4.0.2 & Numbers 2.0.2. iWork '09 has since had update 3. If you're not running the latest versions & Software Update says your software is up to date, make sure the applications are where the installer initially put them. The updaters are very picky. If the location is not where the updater is programmed to look or if the folder doesn't have the name the updater looks for, it will not work. The applications cannot be renamed or moved. They must be in the iWork '09 folder in Applications. That iWork folder must be named iWork '09. If it doesn't have the '09 Software Update won't find them & the updaters won't work.

  • Can't open Word documents from Macmail

    I use MS Office since I am in publishing and have never had this problem before. But about 50% of the time, I can't open .docx documents that are sent to me by email. Again, this is only some .docx documents. Any ideas on why this might be happening?
    Also, it gives me an error message saying that there is not enough disk space to convert this document, but I have about 175GB available.
    Message was edited by: Idea Architect

    Try http://www.neooffice.org/ instead of Microsoft Word.
    As for disk space, see my FAQ*:
    http://www.macmaps.com/diskfull.html
    - * Links to my pages may give me compensation.

  • How to restrict Firefox to open word document in browser window with href

    How to restrict firefox to open word document from a website link to open in the browser window, instead it should open in native program.
    1.I have tried other website, and have clicked on similar links they are opening word document correctly in native program
    2. MS word document from one specific site is opening in browser causing junk character in place of word document.
    Could you please help on this.

    Thanks for your response...
    But As i said, I have tried with other website on the same browser, there it is opening word document in native program. Also the above mentioned options have been tried earlier.
    I have some questions related to this?
    How is this href link is behaving differently opening in browser for mozilla only. Technically, Can we make it open it native program only? If so, then how?

  • Cannot Open Word Documents on Desktop

    I cannot open word docs from desktop. We use Folder Redirection for the desktop and documents folders, but I don't have issues with excel or pdf files, and I'm able to open word documents from start menu.
     here is the error I'm getting servername\RedirectedFolders\"username"\Desktop\file.
    cannot be found. Check your spelling, or try a different path.
     

    Hi,
    Did this issue occur on all directed Word documents or some? Could you open the local Word document?
    Please make sure this file is indeed exists in that path.
    If it is, stop folder redirection, directly access the folder use UNC path for test.
    If it works fine, please redirect again to confirm the issue.
    Karen Hu
    TechNet Community Support

  • Open a word document from a Java Application

    Hi,
    Can I open a word document from a java GUI apllication and point to a bokkmark automatically in the word document when opened.

    See this thread:
    http://forum.java.sun.com/thread.jspa?threadID=228332&messageID=810684

  • When I try to install abode - it will download but says i have to close firefox before it will install. also i try to open a word document from a website and it will not open - it will only download

    i install abode - it will download but not install and indicates i have to close firefox before it will download. Also, I try to open a word document from a website - it will download but not open.

    You need to close Firefox to install many plugins, including those from Adobe.
    As for the Word downloads, see the changing downloads action section of this link - https://support.mozilla.com/kb/Managing+file+types

Maybe you are looking for