Creating Batch Files for Automated Drag and Drop Process

  • Thread starter Thread starter sean123
  • Start date Start date
  • Tags Tags
    Batch files
AI Thread Summary
The discussion centers around creating batch files in DOS to automate a specific process. The user aims to develop a system that allows files from different directories to be associated with distinct executable programs, despite sharing the same file extension. The user seeks guidance on how to move executable files and execute them in designated folders. A suggestion is made to use the COPY command for moving files and to execute them by naming the file in the batch command. Further clarification on the desired file associations is requested to provide more tailored assistance.
sean123
Messages
2
Reaction score
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!
 
Computer science news on Phys.org
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.
 
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
Back
Top