Defining and using a variable in batch file

前端 未结 4 1576
一向
一向 2020-11-22 16:01

I\'m trying to define and use a variable in a batch file. It looks like it should be simple:

@echo off

set locatio         


        
4条回答
  •  忘了有多久
    2020-11-22 16:29

    input location.bat

    @echo off
    cls
    
    set /p "location"="bob"
    echo We're working with %location%
    pause
    

    output

    We're working with bob
    

    (mistakes u done : space and " ")

提交回复
热议问题