It is currently June 3rd, 2024, 1:25 pm

How to map a network drive

General topics related to Rainmeter.
Beerens20
Posts: 3
Joined: April 6th, 2012, 9:52 pm

How to map a network drive

Post by Beerens20 »

Below is the code for a button that when left clicked opens my documents folder. I'm trying to figure out how to create the same thing but when clicked it opens a folder on a networked drive. The pathname for the network drive (copied from the file manager) would be \\BETA-PC\Network Stoarge ... yes yes I know I mis-typed Storage when I set it up :)

Can anyone help me here?

[Folder1]
meter=button
buttonimage=buttonB.png
x=142
y=52
leftmouseupaction=!execute [C:\Users\Home1\Documents]

[Folder1Name]
meter=string
text=Documents
fontcolor=00fffc
fontface=after disaster
fontsize=9
stringalign=right
x=146
y=51
antialias=1
User avatar
jsmorley
Developer
Posts: 22637
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: How to map a network drive

Post by jsmorley »

LeftMouseUpAction=!Execute ["\\BETA-PC\Network Stoarge"]
Beerens20
Posts: 3
Joined: April 6th, 2012, 9:52 pm

Re: How to map a network drive

Post by Beerens20 »

Yeah I tried that originally but it didn't work and rainmeter hung and had to catch up. I'll try it again and make sure my pathname is right. I'll report back after dinner when I get a chance to try it out.
Beerens20
Posts: 3
Joined: April 6th, 2012, 9:52 pm

Re: How to map a network drive

Post by Beerens20 »

Thanks jsmorley, that worked. I must have fat fingered it when I tried it earlier but it's all good now!