UNC path to automatically obtain the local computer name

The computer here is named cpad is there a way to modify this string to grab the computer name from the local computer so that i don't have to change it for each computer.

\\cpad\C:\Program Files\CRDL\MOVE\Crdl.Move.exe
mickeyshelley1Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Brian PringleConnect With a Mentor Systems Analyst II, SCM, ERPCommented:
Instead of the computer name, use %computername%.
0
 
Rey Obrero (Capricorn1)Commented:
try this

msgbox  environ("computername")
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.