Batch script to open multiple excel and doc files

Hi Everyone,
Could anybody please provide a batch script to open multiple excel and doc files at a time.
Appreciate ur quick response.
Regards,

You have several scripting choices within Windows. At a basic level you've got "batch files" - which run a series of command interpreter commands, and have a file extension of .BAT or .CMD. If you just wanted to open a list of Word documents, then assuming that the path to Word is correct (something like this below) you could list these in a file with a .BAT extension and run this (e.g. double click on it):
"C:\Program Files\Microsoft Office\Office\Winword.exe" "C:\Documents and Settings\All Users\Desktop\File1.DOC"
"C:\Program Files\Microsoft Office\Office\Winword.exe" "C:\Documents and Settings\All Users\Desktop\File2.DOC"
"C:\Program Files\Microsoft Office\Office\Winword.exe" "C:\Documents and Settings\All Users\Desktop\File3.DOC"
"C:\Program Files\Microsoft Office\Office\Excel.exe" "C:\Documents and Settings\All Users\Desktop\File1.XLS"
"C:\Program Files\Microsoft Office\Office\Excel.exe" "C:\Documents and Settings\All Users\Desktop\File2.XLS"
Another script language is VBScript, which was the example I gave. VBScript is available on most Windows platforms and can be run from a command prompt or within Windows. If you save the text I gave you above to a file with a .VBS extension you can double-click to run it (Windows) or open a command prompt and type CSCRIPT MyVBScript.VBS (assuming that's the name of the your .VBS file).
Other script languages are available to achieve the same thing, including Powershell, however you'd need to have Powershell available on your PC.

Similar Messages

  • To open a Excel and Doc file inside the AIR application

    How to open a Excel and Doc file inside the AIR application.  I have opened the PDF file inside the AIR application.  But i got stuck in opening the Exce and Doc file.  Please help me in this issue.

    AIR does not support this inherently. However, you could write code to parse these file formats. For example, the following is an ActionScript 3.0 library for reading and writing Excel files:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1375018

  • I can't read - open my excel and doc files ?

    since I have installed the Lion I can't read my excel , doc files ?? format is not supported anymore .. I hope it is not just a joke .

    Hi
    Perhaps the document you need to open requires a higher version of Office. If you need a good software,
    do what BigGee said, download OpenOffice at OpenOffice.org.
    Thanks
    -Mac FX

  • How to open multiple folders and read file?

    Hello,
    I try to use this bridge script. The script work very well for me but some times I have multiple folders.
    Now script work that:
    1. Read file in folder
    2. Save text file and show me popup with full quadrature
    http://forums.adobe.com/message/3996179?tstart=56
    1. Open folder
    2. Read file
    3. Close folder
    4. Read next folder
    5. Read file
    6. Close folder
    7. ....
    8. Save text file with all folders and show me popup with full quadrature
    Please help!
    Best regards.

    Lightwave wrote:
    I don't think you guys are hearing my question. I can see how to restore a single file or folder.
    I want to restore ALL the changed or deleted files and folders since my last backup (but not the entire disk, that would be unnecessary)
    Were all (or most) of the items in, say, your Documents folder, or your Music folder? If so, you can restore the whole folder via TM. That will put all sub-folders and files back exactly the way they were at the time of the backup. You just have to be careful to pick the right backup (date & time).
    Or, if they were scattered through your Home Folder, you can restore that entire folder in the same way.
    If you've made changes subsequent to that backup, however, they will be lost in the process. What you can do in that case is, restore to a different location, then compare the two folders, and drag & drop what you want. (To restore to a different location, select the folder in TM, then click the "gear" icon in the TM Finder window, and select +Restore <item selected> to ...+ and you'll be prompted for a restore location.)

  • Opening attached .pdf and .doc files

    I am having a mental moment and can't figure out how to
    (attach to button) import .pdf or .doc files so that they open when
    the project is published. The buttons are linked to files on my
    computer...when I publish, Captivate knows the files are there and
    tells me:
    "The files/projects listed below are linked to the open
    project. The linked files/projects may require exporting.
    It is also important to copy all referenced files and
    projects with their corresponding HTML files to the output folder."
    1. How do I export the linked files?
    2. What output folder is it refering to?
    Thanks in advance...I'm obviously new to captivate.
    js

    Hi again js
    Certainly linking to the documents from MenuBuilder is one
    approach.
    Are you saying the links from Captivate are failing you? You
    may wish to try a technique I outlined in
    this
    thread.
    Cheers... Rick

  • Need help with easy script for open / close app and move files

    Hi,
    I'm not a scripter.. never done anything special perhaps more complicated than /shutdown -s on cmd..
    I actually learned ASCII C language on university but never used it in real.
    I'm trying to create a basic script that perhaps you could help me or guide me how to do it..
    The commands are
    1) Close a running app (end task it or force kill it, I prefer end task it)
    2) delete files from x location
    3) run .exe app from y location
    4) close that running app 
    5) move files from z to y
    Perhaps adding few "wait few seconds" commands in between each, so the apps will launch successfully..
    My first question will be whats the easiest script language to do that?
    I tried VBScript but couldn't find commands for open or close apps.. also for controlling files..
    And what commands can do that? I could google them up for better understanding no need for rough guide
    And lastly, does it too hard? If it takes more than hour to make it (learn and process) than it ain't worth it..
    Thanks alot ahead!
    Jordan.

    hmm 2 questions:
    1) taskkill.exe causing me access deny error.. I used "taskkill.exe /IM softwarename.exe"
    how do I get permission or something to fix that?
    2) on the "move" command..
    First, its a "copy" instead.. but I easily figured that out.. 
    but more important is that I want to copy a folder.. with unknown list of way too long files and sub folders..
    and all I see is ability to move a file..
    Is this possible?
    Thanks

  • Office 2010 & 2007 - Excel and Access File Locking Out On the Network With Multiple Users

    This is also posted in the Office 2010 - IT Pro General Discussions, but was suggested to repost here, since a definitive answer was not found.
    Hi,
    An issue that's happening is that Excel and Access files are locking on the network. We're currently using Office 2007 and 2010.
    Here are some different scenarios that are happening:
    When opening the file it is locked out by “User X” which is the person that has the file locked out and no one else can open the file.
    When opening the file it is locked out by “User Y” which is NOT the actual person, but is locked out by “User X” and no one else can access the file.
    When opening the file  it is locked out by “…another user” which is generic and no one else can access the file.
    The two more common events are incident 1 and 2 with 3 happening the less common.
    This message will continue until the sessions are closed through computer management on the file server.
    The file server is running Windows Server 2003.
    This does happen on both Windows XP and Windows 7 clients.
    This does happen for users using Office 2007 and Office 2010.
    There are two sets of Office 2010 Users when it comes to patches. Everyone has the most current patches with Office 2010 SP2 while anyone that has Microsoft Project 2010 is using all the current update before Office 2010 SP2.
    All users that are using Office 2007 have all the current patches and service packs.
    Another variable is that we have users that will leave a file open on the network for 3+ days and after a while it will lock the file out.
    Also we have Shadow Copy that runs daily on the system which I'm not for sure if that impacts anything if a file is opening during that time.
    Any ideas on how to mitigate the lock out issues would be appreciated.
    Thanks,
    Binary Process
    Edit November 12, 2013: This issue can occur if and if not another person actually has the file open. If the person doesn't have the file open then there is a hung connection which needs to be disconnected by going to the Computer Management of the File
    server.

    Hi Binary,
    I know that the description of the hotfix does not relate to the issue. The purpose is to install it for upgrading SMB related file.
    A similar issue I encountered before:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b7fcc59b-52d9-4a02-863a-1a529bcb8cb1/temp-doc-etc-files-dont-close-after-a-file-closes-this-causes-locked-files?forum=winserverfiles
    It is resolved by upgrading SMB files so maybe it will help on your case.
    Another hotfix which may related:
    http://support.microsoft.com/kb/983458
    If you have any feedback on our support, please send to [email protected]

  • I need to open and use Excel and Word files on my iPad, which software need to get?

    I need to open and use Excel and Word files on my iPad, which software need to get?

    The options include :
    Apple's Pages app for Word docs and Numbers for Excel spreadsheets
    There are also third-party apps which support both word and excel in the one app e.g.Documents To Go and QuickOffice HD

  • I have a request from a customer to run a script to create multiple Usernames and Passwords on ACS5.3 appliance.

    I have a request from a cutomer to run a script to create multiple username and password on ACS5.3 Appliance. Does anyone has any suggestion on how to go about this?

    Have you tried using the import option on the ACS? You can put all your accounts in a csv file and upload it into the ASA.
    http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_system/5.3/user/guide/users_id_stores.html#wp1132152
    If that doesnt work you can use the REST Web Services in ACS also:
    http://www.cisco.com/en/US/docs/net_mgmt/cisco_secure_access_control_system/5.3/sdk/rest.html
    Thanks,
    Tarik Admani
    *Please rate helpful posts*

  • I am unable to open the microsoft word and excel and pdf files after upgratding to 4.3.3 os version

    I am unable to open the microsoft word and excel and pdf files after upgratding to 4.3.3 os version. I was able to access them in 4.3.1 .
    Can anybody tell when is this getting resolved.

    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile
    Your old Profile is located here in Vista & Win7: <br />
    ''drive'':\Users\''Windows login user name''\AppData\Roaming\Mozilla\Firefox\Profiles\''profile_name''

  • PDF files will not open and eratically open multiple pages and then freezes up the page

    PDF files will not open and eratically opens multiple pages and then the laptop freezes up. Please help.

    E Denice wrote:
    PDF files will not open and eratically opens multiple pages and then the laptop freezes up.
    Doesn't make much sense to me. Methinks details are needed.

  • How to open an old .book/ .doc file(s) and create PDF?

    Hi team,
    I seek your help and would like to know if you have a suggestion/ solution for the situation stated below −
    Situation
    Our development team received some files. These files seem to comprise of two sets of files and one .derive file. The sets seem to contain one .book and some .doc files each. The .doc files indicate that they are Microsoft 97-2003 documents.
    What I did
    · I tried to open the .book file with FrameMaker 8.0 or 6.0 and received an error message stating "Although <pathToBookFile>\abc.book appears to be a FrameMaker document, it can't be opened with this release of the product."
    · I tried to open the .doc file by using a text editor like MS Word97/ notepad and it displayed <MakerFile 1.03> in the File Conversion dialog box
    Saved .doc file as .fm and tried to import into/ create a new book
    Attempted to convert the .doc files by using an online conversion utility
    Opened by using HTMLDOC and DOXYGEN tools – displays BAD HEADER message
    What is required
    The files need to be converted to a readable format, preferably two separate PDFs.
    My questions
    ·         Are these FrameMaker files? Or do you suggest that they have been created by using some software other than Adobe FM?
    ·         If these are FrameMaker files – what version could they be (in view of the <MakerFile 1.03> tag)? is there a possibility that the files need a version older than Adobe FM6.0 to be opened?
    ·         How can I create a readable format (preferably PDFs) from the .book and .doc files?
    Please let me know any information that you may need.
    Thanks!

    If the .doc files actually have <MakerFile 1.03> at the start, then they're from the first release of FM. Check the book file in a text editor, to see if it has a corresponding <BookFile 1.03> in the first 16-bytes.
    These are very old files and hopefully without any corruption.
    You could try using FM's "heroic open" to see if anything can be recovered from these.
    First open/create a blank document.
    Next type <esc> o H to trigger the "heroic" open. It display a standard file open window, but this skips a lot of error checking and tries to pull whatever pieces it understands out of the file.
    You should then immediately save as MIF and then exit FM, so as to not leave it in a potentially unstable state.
    You can then open the MIF file in FM to see what's been recovered.

  • Acrobat pro 9 has stopped combining excel and word files

    Hello
    Acrobat 9 Pro crashes when combining word and excel. It is ok with merging PDFs
    I have tried updating the software - it crashes saying install manager has stopped working
    I have installed repaired and re installed - still can't combine
    It will combine multiple PDF and photo files
    Operating system is windows 7
    Thanks in advance

    When telling Acrobat to combine DOC/DOCX or XLS/XLSX files Acrobat must use its PDFMaker.
    Acrobat asks the OS to open the file(s) native application (Word or Excel for your situation) and then has PDFMaker output a PDF.
    Acrobat then combines these PDF files.
    But, Acrobat 9 PDFMaker is not compatible in Windows 7.
    You can use the Adobe PDF printer to output a PDF from the Word / Excel files then, as you noted, combine the PDFs.
    Acrobat X provided a Windows 7 compatible PDFMaker.
    However, Acrobat X has been replaced by Acrobat XI.
    So, to do what you desire you'd need to upgrade to Acrobat XI.
    The available upgrade paths are here:
    http://www.adobe.com/products/acrobatpro/buying-guide-upgrade-pricing.html
    Be well...

  • Need Script to save multiple FrameMaker 9.0 files as .mif

    I am using FrameMaker 9.0 on a PC.
    I have a number of UNIX scripts that work on .mif files.
    With the older versions of FrameMaker, I was able to run FrameMaker on Unix and use the batch capabilities to create a script that opened the book and saved each file as a .mif file.
    FrameMaker 9.0 is not supported on Unix, so I can't do that any more.
    I have found references to scripts that will do the conversion to mif on the PC, but they all talk about older versions of FrameMaker.
    What can I use to automatically convert all the files in a book to mif files?
    Thanks,
    Tim Walker

    There are several plug-ins to save .mif and back to .fm
    TOOLBOX for FrameMaker 9 (www.toolboxforme.com) 'FM <> MIF' allows you to generate a complete book in MIF format out of a FrameMaker book in binary format and vice versa: the book and all book components are saved in the respective format.
    TOOLBOX for FrameMaker 9 'Book Transfer (FM<>MIF)' allows you to move a book with all components and generate all .fm files to .mif and vice versa.
    Note: FrameMaker  9 and TOOLBOX save MIF 9 or MIF 7. There is no way to save MIF 8.
    - Georg

  • .pdf and .doc files corrupted on 2 Macs?

    On an iMac and a shared Mac Mini, a number of PDF and DOC files have all of a sudden gotten corrupt. Some of these have not been modifed in 2 years but all of a sudden are corrupt. I've tried Data Rescue and cannot find anything online about these multiple files getting corrupted. I've rebuilt permissions and done various ML Cache Cleaner options to no avail. Anyone heard of anything like this? It just happened all of a sudden on 2 computers. At first I figured the first computer had the partition going bad but that doesn't explain 2 computers at once.

    Dear M.V,
    with the same above configuration, now I am able to open pdf's which are having a size lessthan 2 MB.
    below is the access log
    127.0.0.1 - - [13/Feb/2008:15:04:36 +0530] "GET /pdfcheck.php?file=CampusMap HTTP/1.1" 200 2000000 below is the error log
    [13/Feb/2008:15:10:49] warning ( 3288):  for host 127.0.0.1 trying to GET /pdfcheck.php, finish-response reports: HTTP2228: Response content length mismatch (2000000 bytes with a content length of 2535786)  php code
    <?php
    if(!isset($_GET['file']))die('LOGGED! no file specified');
    $file_path=$_SERVER['DOCUMENT_ROOT'].'/pdfs/'.strip_tags(htmlentities($_GET['file'])).'.pdf';
      $file_name = $_GET['file'];
    $mm_type="application/pdf";
    header("Cache-Control: public, must-revalidate");
    header("Pragma: hack");
    header("Content-Type: " . $mm_type);
    header("Content-Length: " .(string)(filesize($file_path)) );
    header('Content-Disposition: inline; filename="'.$file_name.'"');
    header("Content-Transfer-Encoding: binary\n");
    readfile($file_path);
    ?>Thanks
    madhu

Maybe you are looking for

  • Report on open sales order ,total sales

    Hello Gurus I am developing a report line item wise of sales order in which i need to get Suppose a sales order is created on 01.12.2009 for 1000 quantity billed quantity in december 600 billed quantity in january     200 1) total sales done against

  • Open PO Concept

    I want to know whether anybody has vested time in customizing Open PO concept which is nothing but Blanket Functionality instead of Amount & Price we need to manage against the quantity & Price and create releases for the PO. I know this is a unique

  • I lost my patches in the Library Window.

    Hi ! When i first created a project, my Patch library window showed all the available patches. I had various folders, such as LOGIC INSTRUMENTS, GARAGE BAND, and all kinds of folders with extra patches i had downloaded. Well, i just created a new sof

  • Blutooth disconnect when using Skype, now completely fails to reconnect

    I have been experiencing the following problem when accepting or placing a video call through Skype. This never happens when running any other software. My system is an ideaCentre B520 with the stock Bluetooth keyboard and mouse using a Broadcom BCM2

  • IPlanet Web Server crashes when uploading a file of size 15 MB

    Hi Setup is iPlanet Web Server 6.0 with iPlanet App Server 6.5. A servlet is used to upload files using multipart form data. The web server restarts itself when tried to upload a huge file (approx 15 MB). The error log says Catastrophe (600) Web serv