More batch files

  • Thread starter sean123
  • Start date
  • #1
2
0
hi ladies and gents! this is my first post so excuse any stupidity on my part!!

Basically I'm trying to create batch files but i have no programming experience in DOS. Fortunately I am only trying to achieve a simple goal.

I effectively want to automize a kind of 'drag and drop' procedure: I want a program that takes a file from one directory and 'applies' it to an Exec program in another directory.

I can't just associate the file extension with a program, because i want files from different directories to be associated with different exec programs- even though the file extensions remain the same.

ie. All files in any given directory are to be associated with a particular program, but all files in another directory are to be applied with another program.

I probably need to expand on the info I've given so far, but any help is greatly appreciated.

Many thanks in advance!
 

Answers and Replies

  • #2
phinds
Science Advisor
Insights Author
Gold Member
2019 Award
16,429
6,725
You do, as you surmise, need to expand on exactly what it is that you want but basically, if I understand it, you want to move an executable file (an EXE file) to another folder and cause it to execute there. That is very simply done using the COPY command to move the file and then just name the file (in the .BAT command file) to execute it.

I'd need more info to be specific about the file associations you want.
 

Related Threads on More batch files

  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
10
Views
3K
Replies
2
Views
9K
  • Last Post
Replies
2
Views
4K
  • Last Post
Replies
21
Views
2K
Replies
3
Views
5K
  • Last Post
Replies
3
Views
480
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
11
Views
7K
Top