Search : in
By :

Using .bat file to open file in diff location

Last answer on May 5, 2009 9:14:54 pm BST trueparadox, on Apr 14, 2009 5:13:08 pm BST 
 Report this message to moderators

Hello,

I'm working on developing a menu for a USB flash drive.

I have .bat file that opens a spreadsheet with a program that is installed on the flash drive.
The code looks something like this:

Start /d \Folder1\folder2\folderofprogram Name of program.exe "Name of file.ods"

This code works well but the problem is I need to have the file in the same directory as the program.
Is there a way to make the .bat file open the file from a different directory on the USB flash drive?


I think this is a simple problem but was not able to find any information about it.

Thanks for any help!

Configuration: Windows XP
Firefox 3.0.8

Best answers for « Using .bat file to open file in diff location » in :
Create and Open a RAR file ShowCreate and Open a RAR file How to create a RAR file How to open a RAR file RAR is an archive file format that is used during data compression, error recovery and file spanning. RAR is the acronym for Roshal Archive, inspired by...
How to open file .ps (Postscript) ShowHow to open file .ps (Postscript) INTRO Using PDF Creator Using Ghostview INTRO PostScript (PS) is a page programming language used for desktop publishing. Below is a small tips on how to open .ps file. Using PDF...
Opening a PPS FILE ShowOpening a PPS FILE PPS, acronym for PowerPoint Show, is a tool created by Microsoft Office PowerPoint for distinguished presentations and slideshows. PowerPoint enables you to draft your own presentation within different display and design...
Download SWF Opener ShowSWF Opener is a reader allowing to read videos in format Flash (extension SWF) stocked in the hard disk, for instance in the temporary files of the browser. He allows to read videos in flash without Internet Explorer, possibly in full screen and...
Download Winmail Opener ShowWinmail Opener is a small very simple utility allowing to read contents of TNEF-encoded e-mail (winmail.dat ). If you receive an E-mail with winmail.dat format, Winmail Opener will allow you to read the contents. Winmail Opener possesses the...
Using FTP commands ShowThe FTP protocol FTP (File Transfer Protocol) is a protocol — meaning a standard language that lets two machines communicate — used so that computers of different types (or with different operating systems) can transfer files over a...
Linux - Tree structure of files ShowFile hierarchy under Linux To ensury compatibility and portability, Linux systems comply with the sole FHS (File Hierarchy Standard) standard. The basic hierarchy is as follows: /the root, containing the main directories /bincontains...

1

 Neomagus, on May 5, 2009 9:14:54 pm BST
  • +3

Use UNC path name. so something like this: \\computername\folder\filename or \\mypc\c:\windows\testfile.exe

Hope this helps.

Reply to Neomagus