Okay, so currently, I'm trying to create an AutoIt script that would RunWait a command to run a Data Loader upsert. However, I've been running into several issues with running the process.bat batch file from a different directory. My Data Loader files installed to my User's AppData folder, and the directory I'm working in is my User's Documents folder.
I originally would get an error where the command line wouldn't be able to find dataloader-42.0.0-java-home.exe which I fixed by adding the bin directory it's in to the Path Environment Variable. However, now the error I'm getting is "Error: Could not find or load main class com.salesforce.dataloader.process.FindJavaRunner" along with something about setting the JAVA_HOME environment variable before running process.bat.
I got that JAVA_HOME error with the dataloader-42.0.0-java-home.exe error as well, but setting the JAVA_HOME environment variable only makes process.bat always give "The system cannot find the path specified" as an error.
I'm pretty much stuck now, as running process.bat within the bin folder works perfectly fine, but I'd have to move all my files there which seems like a bad plan.