How to create a shortcut to open several files?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to create a shortcut to open several files with only one
click?
Thank you in advance
Eric
 
Eric said:
Does anyone know how to create a shortcut to open several files with only
one
click?
Thank you in advance
Eric

I don't know about creating a shortcut that will open up multiple files.

But, you can create a batch file for this purpose.
Create a new text file.
Put in commands to open files up.
Save text file.
Close the file.
Rename it to have a .bat extension instead of a .txt extension. .bat
specifies batch files.
Double click on the batch file to open up your other files.

A quick example of the commands to use:

start Movies.txt
start autoruns.exe
start C:\Progra~1\Nikon\PictureProject\NkbPProj.exe

The start command allows multiple files to open at once.
The first two lines open up files in the same directory (these are files on
my desktop - my movies list and the Autoruns program from Sysinternals.
The last line opens up my Nikon PictureProject software for my digital
camera. One thing to note here is that if there are any spaces in the file
names or folder names then you need to enclose them in quotes or use the 8.3
filename notation (ex. the Progra~1 specifies the Program Files folder in
8.3 notation.

You can also use quotes like this: C:\"Program
Files"\Nikon\PictureProject\NkbPProj.exe where Program Files is in double
quotes between the backslashes. If you don't do this or the 8.3 notation for
files or folders that have spaces in their names then those files won't open
and you will get an error saying that they can't be opened.

If you want to add files to your batch file then right click on the batch
file and choose Edit.

-Dan
 
Thank you very much

Do you know how to add a command to close automatically the DOS command
window after opening all files?
Thank you very much
Eruc
 
Eric said:
Thank you very much

Do you know how to add a command to close automatically the DOS command
window after opening all files?
Thank you very much
Eruc

Batch files have always closed automatically for me, but if they aren't
doing the same for you then you can add the exit command at the end of your
batch file.

So it would look like this:

start Movies.txt
start autoruns.exe
exit

The exit command closes the Command Prompt window.

-Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top