Last active
January 15, 2018 12:52
-
-
Save jtviegas/b9c51490f15a822ad3f8c9c6a8042663 to your computer and use it in GitHub Desktop.
basic windows script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal EnableDelayedExpansion | |
SET p=%~dp0 | |
SET thisdir=%p:~0,-1% | |
FOR %%a IN ("%thisdir%") DO SET p=%%~dpa | |
set parentdir=%p:~0,-1% | |
echo %thisdir% | |
echo %parentdir% | |
rem include some file | |
call %thisdir%\VARS.cmd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment