Home > Back-end >  How can I autocomplete a path in a bat script? [closed]
How can I autocomplete a path in a bat script? [closed]

Time:09-16

I'm trying to automate a process of updating a custom discord client but I can't seem to figure out how to go past this point in the script and also autocomplete a file path cause a part of the file can change at any time. Here is what i've got so far:

taskkill /f /im discordcanary.exe


cd %userprofile% && cd powercord && git pull && npm run unplug && npm i && npm run plug (I know that the excessive use of && probably isnt needed but im not sure how else to do it tbf)

cd ../Appdata/Local/DiscordCanary/app-(this is what needs to be autocompleted)
START DiscordCanary.exe

Any and all help would be really appreciated

CodePudding user response:

Someone answered my question elsewhere, but all I would have to do is

cd app-*

its legit so simple lol

CodePudding user response:

1 - cd %APPDATA%\Local\DiscordCanary\app-

2 - C:\Users\%USERNAME%\AppData\Local\DiscordCanary\app-

3 - C:\Users\Default\AppData\Local\DiscordCanary\app-

  • Related