start "%currentdirectory%/steam-idle.exe" 578080 start…
- User
User: start "%current_directory%/steam-idle.exe" 578080 start "%current_directory%/steam-idle.exe" 1343370 start "%current_directory%/steam-idle.exe" 730
not working Assistant: The issue you’re encountering with the script might be related to how the
%current_directory%environment variable is being used or how the file paths are constructed. Here’s a way to troubleshoot and resolve these problems:1. Verify the Environment Variable: Ensure that
%current_directory%is correctly defined and points to the directory containingsteam-idle.exe.2. Check File Paths: Make sure that
steam-idle.exeexists in the specified directory and that the paths are properly formatted.3. Use CMD Directives: Try using the
cdcommand to navigate to the directory first and then run the executable. Here’s how you could structure the script:code@echo offcd /d “%~dp0” // Change to the script’s directorystart steam-idle.exe 578080start steam-idle.exe 1343370start steam-idle.exe 730### Explanation:
-
@echo off: Prevents commands from being printed in the terminal output.-
cd /d "%~dp0": The/dswitch changes the drive along with the directory.%~dp0is a batch file parameter that expands to the drive letter and path of the currently running script, making it a suitable replacement for%current_directory%if the script is in the same folder assteam-idle.exe.-
start steam-idle.exe [AppID]: This startssteam-idle.exewith the given AppID as a parameter. Replace[AppID]with the appropriate Steam game’s AppID as needed.### Additional Tips:
- Permissions: Ensure you have the necessary permissions to execute
steam-idle.exe.- Check Console Output: Run the script from a command prompt to see if there are any errors printed out. This can provide more clues about what might be going wrong.
- Script Location: Make sure the batch script is located in the same directory as
steam-idle.exe, or update the paths to point to the correct directory.By following these steps, you should be able to troubleshoot and resolve the issue with your script not working as intended. User: @echo off set current_directory=%~dp0 start "%current_directory%/steam-idle.exe" 578080 start "%current_directory%/steam-idle.exe" 1343370 start "%current_directory%/steam-idle.exe" 730 Assistant:
- Assistant
It looks like you're attempting to use the
%~dp0variable within a batch script to set thecurrent_directoryvariable to the directory of the script. However, you seem to be running into issues with startingsteam-idle.exe. Let's address these issues.-
Correct Path Syntax: In batch scripts, backslashes (
\) should be used as path separators instead of forward slashes (/). -
Handling Spaces in Paths: Quote the file paths in the
startcommand to handle any spaces correctly. -
Double Check the Executable: Ensure that actually exists in the directory you expect.
-