Ask your question

Using .bat file to open file in diff location [Solved]

trueparadox - Apr 14, 2009 5:13pm BST - Last answer on May 5, 2009 9:14pm BST Neomagus
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
Add comment

Other content from Kioskea on « Using .bat file to open file in diff location »

How do I open a folder using batch fileForumWindows
Unable to open D: by double clicking [Solved]ForumWindows
Batch File - Auto Proceed [Solved]ForumProgramming
How to delete virus "autorun.inf" for su [Solved]ForumViruses/security
Batch file for one current date in text file [Solved]ForumProgramming
How to Password Protect your Files and FoldersTipsSecurity
Sort by :   Votes | Date | Date descending 1 answers
Best answer
+3
moins plus
Use UNC path name. so something like this: \\computername\folder\filename or \\mypc\c:\windows\testfile.exe

Hope this helps.
Add comment