Skip to content

Instantly share code, notes, and snippets.

@jtviegas
Last active January 15, 2018 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtviegas/b9c51490f15a822ad3f8c9c6a8042663 to your computer and use it in GitHub Desktop.
Save jtviegas/b9c51490f15a822ad3f8c9c6a8042663 to your computer and use it in GitHub Desktop.
basic windows script
@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