Home > other >  BATCH : set an incomplete path in a variable
BATCH : set an incomplete path in a variable

Time:12-02

I'm trying to backup some information from a folder. I try to make it so my collegues can also work with it. The folder in with are the files to backup dosen't have the same name on each machine.

I work from a different folder.

What I can do is this in CMD:

cd %APPDATA%\Mozilla\Firefox\Profiles\*.default-esr

and I can navigate to C:\Users***\AppData\Roaming\Mozilla\Firefox\Profiles\k6lfpnug.default-esr

I tried to implement it in my batch file :

@echo off

set CURRENT_DIR=%~dp0
set FIREFOX_DIR=%APPDATA%\Mozilla\Firefox\Profiles\*.default-esr

set BAK_FIREFOX_DIR=%CURRENT_DIR%\Firefox-%TIMESTAMP%

mkdir            
  • Related