Solved

UNC path to automatically obtain the local computer name

Posted on 2014-02-06
2
258 Views
Last Modified: 2014-02-07
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
0
Comment
Question by:mickeyshelley1
2 Comments
 
LVL 16

Accepted Solution

by:
Brian Pringle earned 500 total points
Comment Utility
Instead of the computer name, use %computername%.
0
 
LVL 119

Expert Comment

by:Rey Obrero
Comment Utility
try this

msgbox  environ("computername")
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now