+ Reply to Thread
Results 1 to 3 of 3

Open online excel file - batch file

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    Lisbon
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 1708 (build 8431.2153)
    Posts
    62

    Open online excel file - batch file

    Hi,

    So, I have a batch file to run some tasks at work and I want to add opening an excel file. This file is shared online and it opens fine, but I can't make it open when usig the batch.
    Its line is simple and I actualy tried with some other file i found online... a calendar. And the result is the same: an error...
    For exemple (this is the actual text in the .bat):

    @echo off
    start excel http://calendar.wincalendar.net/Blan...0Calendar.xlsx
    exit

    This opens excel but not the file. It shows a message saying "We can't connect to 'http://calendar.wincalendar.net/Blank/Blank%20March%202014%20Calendar.xlsx'. Please make sure you're using the correct web address.

    Can anyone help, please?

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Open online excel file - batch file

    Your problem is probably caused the the '%' sign which is a reserved character in .bat files. If you double up the '%' signs it should work:

    Try:
    Please Login or Register  to view this content.

    Lewis

  3. #3
    Registered User
    Join Date
    07-09-2014
    Location
    Lisbon
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 1708 (build 8431.2153)
    Posts
    62

    Re: Open online excel file - batch file

    Hi LJMetzger,

    That's it! So damn simple! Thak you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to open new instance of an excel file from batch?
    By bg18461 in forum Excel General
    Replies: 1
    Last Post: 04-25-2014, 07:51 PM
  2. DOS BATCH file to open excel and run macros
    By dwr0211 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2011, 02:13 PM
  3. Batch file to open the most recent excel file
    By rajasekhar28 in forum Excel General
    Replies: 2
    Last Post: 12-30-2009, 08:00 AM
  4. Run excel macro from batch file. Workbook Open
    By Jonsby in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-26-2009, 08:14 AM
  5. [SOLVED] How can I batch open a txt file in excel 2003 and save back as a .
    By P Silzle in forum Excel General
    Replies: 3
    Last Post: 02-09-2005, 08:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1