Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Using variables in a file path directory in a batch file
  2. variable SET /Jan2000 = a
  3. cd P:ReferenceData2000%a%
  4.        
  5. chdir /D P:ReferenceData2000
  6. SET Jan2000 = a
  7. chdir P:Reference2000%a%  
  8. dir
  9. pause
  10.        
  11. SET a=Jan2000
  12. CD P:ReferenceData2000%a%
  13.        
  14. set a=jan2000
  15. pushd P:ReferenceData2000%a%