Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

UNC path to automatically obtain the local computer name

Posted on 2014-02-06
2
Medium Priority
?
292 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

926 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