Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: reddit.bat
- :: Author: u/JustAnotherITUser
- :: Date: 2018-10-01
- @echo off
- :: While the following isn't strictly necessary, I'd recommend enabling it
- :: manually when you're going to use set flags like "/p"
- setlocal enableextensions
- :: Your issue is here.
- :: See the first double-quote here:
- :: V
- ::set /p id="Enter the 5 digit store number: "
- ::
- ::
- :: with set /p, set /a, etc; you need to quote the entire expression:
- set /p "id=Enter the 5 digit store number: "
- echo.
- echo The Store Number entered was %id%
- set id=%id%
- echo.
- ping *%id%** @pause\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement