%HOMEDRIVE% is not giving the expected output

خرید بک لینک

You are issuing 2 different commands and expect the same result.

you do not need to enter the first and the 2nd statement still will be H:.

This is because %HOMEDRIVE% is determined at login. It can be set by the domain controller or it can be a local setting.

If you want to retu the current folder, just type the command cd or echo %CD%

If you want to change %HOMEDRIVE% to something else, for example, the current folder, use SET HOMEDRIVE=%CD% or directly: SET HOMEDRIVE D:HomeFolder

Keep in mind that setting %HOMEDRIVE% may have unexpected results if programs expect %HOMEDRIVE% to be H:.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 239 تاريخ: دوشنبه 14 تير 1395 ساعت: 20:40

صفحه بندی