Solved

UNC path to automatically obtain the local computer name

Posted on 2014-02-06
2
270 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
ID: 39839488
Instead of the computer name, use %computername%.
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 39839521
try this

msgbox  environ("computername")
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Like many organizations, your foray into cloud computing may have started with an ancillary or security service, like email spam and virus protection. For some, the first or second step into the cloud was moving email off-premise. For others, a clou…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

821 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