batch file to run local from remote location

pppuser

Commendable
Jul 12, 2016
2
0
1,510
0
hello everyone,
i have batch file that compress all the folders where it located and create self extract file (exe)
the command that execute is
JavaScript:
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a -sfx "%%X.exe" "%%X\"
i'm trying to simplify the process for some teacher to run batch file from mapped drive (like H) and the batch file do that -
JavaScript:
xcopy h:\class d:\class /s /y
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a -sfx "%%X.exe" "%%X\"
xcopy d:\class\*.exe q:\students /y
the problem is when it reach to process the compression action it compress the folders on H drive and not on D drive
how can i target the compression to D drive instead of H drive
any halp wold be appreciated
 
Thread starter Similar threads Forum Replies Date
David___Only Apps General Discussion 0
S Apps General Discussion 4
M Apps General Discussion 3
D Apps General Discussion 2
N Apps General Discussion 1
NoctisLionward Apps General Discussion 2
malavena Apps General Discussion 3
Tom Waller Apps General Discussion 2
P Apps General Discussion 1
S Apps General Discussion 4
A Apps General Discussion 13
Z Apps General Discussion 1
P Apps General Discussion 7
G Apps General Discussion 0
T Apps General Discussion 5
SHADOWSTRIKE1 Apps General Discussion 3
S Apps General Discussion 3
R Apps General Discussion 3
M Apps General Discussion 3
ChaoticWolf Apps General Discussion 30

ASK THE COMMUNITY