Creating a batch file. How to open an Excel doc that is located on a network share?

batch file that can access a file on a network share

I'm making a batch file that starts several EXE as an excel spreadsheet that is located on a network share.

exe start perfectly, however when I try to open the excel document, because it is on a network share, windows tells me that the CMD does not support UNC paths use... y at - there a way around this?

the command I used was:

CD "\\server\folder.
Start "excel document.

The way around this is to map the network folder to a disc and use the drive letter.
In your case, it would look like this:

NET use M: \\server\folder / persistent: no
M:
Start "excel document.

When you are finished, you can unmount the drive:

C:
NET use M:/delete

HTH,
JW

Tags: Windows

Similar Questions

  • How to create a new file when I open a folder?

    original title: Stupid Question... The files and folder, how can I

    Create a new file when I open a folder?  I use Windows 7, Microsoft Office Word 2003.

    In Vista when you are in a folder, you just went to the file, new, and created a new file but Windows 7 won't let you do.

    Thanks for any help.  THE

    Right-click in the folder and select new.
    Kind regards
    Hank Arnold
    Microsoft MVP
    Windows Server - Directory Services
    http://it.Toolbox.com/blogs/personal-PC-Assistant/

    05/07/2010 17:16, lead foot wrote:

    Create a new file when I open a folder?  I use Windows 7, Microsoft Office Word 2003.

    In Vista when you are in a folder, you just went to the file, new, and created a new file but Windows 7 won't let you do.

    Thanks for any help.  THE

    Best regards, Hank Arnold (MVP - DS)

  • Every time I try to open a pdf document that is located on a server of our company (so not on my laptop), the drive still shows error. Cannot open the document. Only in EAC I copy the document to my local PC, I can read without problem. Server is mapped

    Every time I try to open a pdf document that is located on a server or in our company (so not on my laptop), reador always shows error. Cannot open the document. Just in case I have copy the document into my local PV, I can read without problem. Server is mapped in my FileExplorer (Win7). So boring and big bug I think.

    Massage of error: "there was an error opening this document. The network path was not found.

    Hi tobiask53385798,

    Could you please try to disable Protected Mode under ' Edit > preferences > (protection) "and see if that helps.

    Let me know.

    Kind regards

    Ana Maria

  • How to create the batch file for configuring windowos?

    Like how to add running exe/service turn on DEP Windows batch file (.bat).
    My computer > etiquette > advance setting > setting > prevention of execution of data (DEP) > add > ok.

    Hello

    The question you posted would be better suited to the MSDN Community. Please visit the link below to find a community that will support what ask you

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • Have Microsoft Office and Open Office installed, try to create a new file, but the Open Office program is not on the shortcut menu

    I have a Windows 7 computer with Microsoft Office and Open Office loaded on the computer.  When I'm in a folder, select the file menu and select new to create a new file, I offer myself to all programs open Office but only Microsoft Excel from Microsoft Office programs.

    It started only recently and I don't know what I did to bring about change.  Previously I was offered all Microsoft Office programs.

    I would go back to the situation where I offer Microsoft Office programs,

    How can I do this?

    Cecil Quillen

    Original title: new offers of file

    Hi Cecil,

    I suggest you to run the program install uninstall fixit in the link, and then uninstall all Open Office.

    This fixit will not only uninstall the software, but also delete the related to the software registry keys.

    Method 1: Solve problems with programs that cannot be installed or uninstalled http://support.microsoft.com/mats/Program_Install_and_Uninstall/

    a. download and run the fixit.

    (b) when requested, select the option: detect problems and apply the patches for me (recommended).

    c. click Next.

    d. select the Option: Uninstall.

    e. in the non-exhaustive list, choose the Open Office software and click next to Uninstall.

    f. Once done, restart the system and check.

    Method 2:

    After you uninstall Open Office, try to repair Microsoft Office and check.

    a. click Start , then type appwiz.cpl in the start search box and press ENTER.

    (b) this will open the window, uninstall a program . Select Microsoft Office , and then click on change.

    c. follow the instructions on the screen and then repair Microsoft Office.

    d. restart the computer once the repair completed and check if that helps.

    Method 3:

    Set the Microsoft Office as a default value by using the link.

    Change the programs that Windows uses by default

    http://Windows.Microsoft.com/en-us/Windows7/change-which-programs-Windows-uses-by-default

    It will be useful.

  • Create the batch file to remove log files in Windows

    We are running Oracle 11 G under Windows 2008 R2. For free tickets, we run daily from rman commands manually. I would like to create a batch to do it automatically. This is the batch file that I created.

    The echo Yes | Del Y:\Orace11g\temp\*.*

    Robocopy D:\Relius\Admin\RADB\ArchiveLogFiles\ Y:\Orace11G\temp\ b / mining: 3

    RMAN

    connect sys@radb target;

    password

    overlap archivelog all;

    remove expired archivelog all;

    Yes

    but it stops at rman

    C:\ > rman

    Recovery Manager: release 11.2.0.1.0 - Production on Mar 21 10:49:27 Oct 2014

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    RMAN >

    What is the correct way to cerate the batch file to delete the expired archivelogs?

    Hello

    It is not a problem of RMAN, but is that a batch under windows creation/configuration is the problem.

    See this URL, how do I Configure a tasks scheduled under Windows 2008 R2.

    -Next, create a file .bat with your instructions:

    Set ORACLE_SID = radb

    set ORACLE_HOME = c:\dbhome

    RMAN cmdfilemyrmancommands.csv msglog = sys/PASSWD@radb target = c:\log.log

    - Then put your RMAN commands in the file myrmancommands.csv

    Run {}

    devote to the disc channel type c1:

    overlap archivelog all;

    remove expired archivelog all;

    output channel c1;

    }

    Best regards

  • BlackBerry smartphone how to open 3rd party app that appears in the options but not the menu applications folder?

    I have a 8530 with a memory card of 2 GB and Verizon Wireless new (if it matters). I downloaded a trial version of a 3 rd-party for geocaching (CacheBerry) application, using Desktop Manager for the process of application for Macs. The application does not appear in the main menu of the application file, but if I go into options > applications, it appears in the list. However, I can't understand how the open - all I see are delete or modify permissions and properties of the app. Any help for a newbie here?

    Thank you.

    AHA! Found in downloads and was able to open from there. I don't know why some applications go to downloads and others go to the applications folder, but I was able to move to a more intuitive folder, too.

    Solved

  • Export datagrid offline mobile application file able to open in Excel

    I created a mobile application offline using Flash and I have a datagrid I want to export/save as a file (perhaps csv) which later opens in Excel.  I appreciate all help.

    I modified the file, you sent me, is simple to understand:

    1 - Addition of two variables 'CSVData' and 'csvHeader '.

    2. whenever you call a 'stop' event, you add data to the variable "CSVData" (variable that stores data in the body).

    3 added the "writeCSV" function when you want to save the file simply call this function.

    Note: I just added the variable 'CSVData' the event 'stopTimeCount1' for the test, do not forget to add other events.

  • How to open a new window that has a single tab and my home page?

    Ago that I had trouble with my internet access so finally deleted Firefox and reloaded it from scratch. Since then, if I open a new window, I get a lot of tabs open. They seem to be the tabs that I had opened the first time I tried to open a new window instead of the tabs, I have now opened. This means that a new window is slow (about 14 tabs open) and does not even include the tabs that I want to use.

    Say you that, haven't you. Maybe this thread will help? It refers at the start, but maybe that session restore got so messed up that until he restores to each new window?

    Old tabs reappear at the start | Firefox Support Forum | Firefox help

  • How can I change the docs that I transferred to word?

    How can I change docs that I transferred to Adobe to Word?

    Hi frankd64333463,

    Click on the enable editing button in the upper corner to allow editing in the word document.

    Kind regards

    Ana Maria

  • I download Lightroom 6 folder has been created, but cannot find how to open the actual programs lightroom I hurt

    It comes

    I redeem code and program download and put himself in a folder BUT now can't see how to launch LIghtroom to start editing.  What I misseed on?

    Hello

    Please see launch Adobe Creative Cloud apps

    Hope that helps!

    Kind regards

    Sheena

  • How to open an HTML page that is part of my project using Captivate 6

    I'm looking to create an HTML page that uses javascript to extract information from Captivate and then go to the window of the browser in the form of report.

    I can't see how you can open a page Web URL of Captivate (by putting in an address explicit IE www.abc.com or http://www.abc.com/myReport.html)

    but I'm curious to know what address can I use if the html file is in the SAME folder in the index.html file that launches the captivate project (or maybe a folder down)...    I am eager to ensure that this works if I just publish the project to a Web server or not.

    I thought, I could use a relative reference (IE something comme.\myReport.html), but I had no luck so far

    Ad hoc solution to Captivate demigods might provide us with a built-in server.

    Copy the dependencies in the said folder IE: C:\Users\Tom\AppData\Local\Temp\CP2840464090993Session\CPTrustFolder28 40464091009\CaptivatePreviewLoader\) then you will be able to simply F12 it and get an overview of your career. Remember, this is based on a single session of CP. If you close off CP, you lose this feature and need to copy these files in the folder of the new session again.

    The proposed closure should not affect it this way, only closing the application should.

    Seth

  • How to open folders numbers when that happens: index _xml is absent in figures

    When I try to open one of my files of numbers, I get a pop up stating file is not valid him index_xml file is missing.  I had this page several times also.  Re started my IMAC, but this message still arrives.

    I went to update my system and updates.

    Hi artistonline,

    You are probably trying to open a current file with an older version of a number. Exit numbers 2 and open numbers 3. Open your file in 3 numbers.

    Quinn

  • How to open Docx and doc. attachments with Word 2013 from Firefox

    I just got a new laptop and installed Office 2013. However, when I try to open an attachment to my e-mail or a document on the web, the box comes up that says: ' Firefox do with this file? I can save the file fine, but when I click on 'Browse' next door 'open with', Microsoft Word is not found. It would be nice to get the document automatically opens in Word. I don't know if this is the right place to ask this question, but any help would be appreciated.

    Which application opens the file if you double-click such a file in Windows Explorer?

    If the default program is the word Firefox should offer this application by default.

    In the case of an attachment then it would be unlikely that the file is to send with the right MIME type for a doc or docx file, but perhaps also a generic type as "application/octet-stream" that will make Firefox want to save the file.

  • How to open the window Defragmenter that shows the status of the defragmentation operation?

    I was not able to open the window that shows the operation of Defrag in action to get an idea of how bad is the State of my PC Defragmenter.

    Professional XP and previous systems, it opens automatically. In Vista does not work and I was not able to find it.

    Is it Vista? How can I open it?

    1 million thanks!

    Mike, NJ

    Hello

    Vista does not have this option which was under XP to see the progress of the defragmentation.

    Please read this response of mine who helped another person in these Forums:

    The Vista defrag works quietly in the background without intervention on your part

    http://support.Microsoft.com/kb/942092

    In Windows Vista, there are a lot of improvements in the defrag engine and handling of fragmentation. By default, Windows Vista uses Task Scheduler to automatically keep the defragmented hard drive. This Automatic defragmentation does not affect the performance of the Windows Vista operating system...

    If you want to use a much better defragmentation program which is free and where you can see the results, I suggest this one:

    http://www.Auslogics.com/en/software/disk-defrag/

    See you soon.

Maybe you are looking for