Choose Language Hide Translation Bar
DRemd
New Contributor

Save file to network

I'm working on a project that will take some data and export a csv file. I got it to save successfully to the local drive but I was wondering if there is a way to have it save to a different network drive, and what I would need to do this.

 

Thanks

0 Kudos
3 REPLIES 3
txnelson
Super User

Re: Save file to network

Under windows or mac?
Jim
0 Kudos
Highlighted
DRemd
New Contributor

Re: Save file to network

I'm using windows

0 Kudos
Craige_Hales
Staff (Retired)

Re: Save file to network

On windows you can map a drive letter to a network drive and use the drive letter to access files, or you can specify the UNC name for the file. The advantage of a drive letter, aside from being shorter, might be that it makes your JSL less dependent on a network share that might get renamed. The advantage of the UNC name is that it makes your JSL less dependent on a drive letter that might not be mapped on another machine.

 

Capture.PNGRight-click the network name and pick Map Network Drive...

So, open("F:\abc.jmp") and open("\\VBOXSVR\windowshare\abc.jmp") are the same file.

 

As Jim suggests, Mac is different. I can't help there.

 

Craige