unc

python copy files to a network location on Windows without mapping a drive

 ̄綄美尐妖づ 提交于 2019-12-18 10:55:39
问题 I am running python in a non interactive session on windows and therefore I cannot map a network drive. Most of what I have researched on here and through google everyone suggests mapping a network drive and copying the files that way. On linux I would facilitate this with an smbmount but unfortunately the software I am working with is tied to windows. Are there any options for interacting with files via a UNC path? 回答1: Personally, I've never had difficulties getting Python to simply

How can I open a UNC path from Linux in Java?

被刻印的时光 ゝ 提交于 2019-12-18 04:18:14
问题 Are there any libraries available that will allow me to read from and write to a Windows Fileshare given a UNC path from Java on Linux. It's trivial on a windows box itself, and I'm aware of smbclient approaches, but I'm looking to do it by dropping in a library. Thanks. 回答1: Have a look at jcifs. It sounds like what you are looking for. From the jcifs site: JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java. CIFS is the standard file sharing

Firefox Links to local or network pages do not work

倖福魔咒の 提交于 2019-12-17 02:22:53
问题 I have a .asp application where image files (.PDF) are stored in a directory (fed by a copier/scanner). The created file names are stored in a database table. When a query is launched from the web page a link to the file is created. When clicked the image should be displayed. This functionality works 100% in Internet Explorer. No such luck in Firefox (and I have some Firefox users). The created hyperlink looks like this file://Server/Scanner/XYZ.pdf The Firefox helps suggest the reason is

Linking a UNC / Network drive on an html page

余生颓废 提交于 2019-12-16 21:30:52
问题 Just a basic html link question. I have an intranet setup, and I need to link to some network drives. They are located on drives such as \server_drive\blahblah\doc.docx Using file:// does not work on either IE8 or Firefox. How can I link to these files? 回答1: To link to a UNC path from an HTML document, use file:///// (yes, that's five slashes). file://///server/path/to/file.txt Note that this is most useful in IE and Outlook/Word. It won't work in Chrome or Firefox, intentionally - the link

SQL Server database on UNC share [closed]

假装没事ソ 提交于 2019-12-14 03:29:59
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have two machines running a C#.net windows forms application each. I want them both to connect to a single SQL Server database which is in one of the machines. And I like both applications to work with that one

Can do PHP “write” or “copy” on mounted remote share, but not an “unlink” or “rename” (“Access is denied”)

╄→尐↘猪︶ㄣ 提交于 2019-12-13 07:35:49
问题 I guess I need a better understanding of WHY this is not working: I have an existing PHP script where I use the "exec" command to issue a "net use", passing in a service username and password, so as to mount a UNC file share on our internal network here to a drive letter. The script, historically, has been used only to then read the files in a couple key directories that we want to look at on that share. I added the ability to create new, empty files successfully (via "fopen") last week. But

How best to add UNC file paths to a Java Classpath

爱⌒轻易说出口 提交于 2019-12-11 17:39:32
问题 Using Java (1.4) is there a way in which to use Windows UNC file locations (\\servername\filestore\etc) within the classpath? 回答1: Basically you just need to swap the back slashes with forward slashes: java -classpath '//servername/filestore/etc;.' <classname> 来源: https://stackoverflow.com/questions/825731/how-best-to-add-unc-file-paths-to-a-java-classpath

Accessing a UNC drive in ASP .NET?

流过昼夜 提交于 2019-12-11 15:09:57
问题 I have two different sets of image files that reside in the root images directory of two different web sites on two different web servers. For arguments sake, let's say the first web server is called web1 and has a primary ip address of 111.111.111.111 and the second web server is called web2 and has a primary ip address of 111.111.111.112. Now, I want to write a web application on web1 that reads the files from the first web site. I can easily do this using classes from the System.IO

What is a minimal valid UNC path?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 13:02:40
问题 I want to make a library that (among other things) parses UNC paths, but I don't fully understand the grammar. Common example is: \\server\share\path Are all of those required for a valid file path? I can navigate to \\server (without share ) using Windows Explorer, but I assume it is using some share discovery protocol, not something filesystem APIs understand — is this right? 回答1: You are correct. A UNC path is required to have share name component. Quoting MSDN: UNC = \\<hostname>\

Loading video using QMediaPlayer and UNC paths

孤者浪人 提交于 2019-12-11 11:51:19
问题 I'm trying to load a video from a network using UNC paths thanks to Qt 5.5 QMediaPlayer. The code snippet is the following one: projectDirectory = QFileDialog::getExistingDirectory (this, tr ("Choose project folder (sensor + video data"), QDir::homePath(), QFileDialog::ShowDirsOnly); QDir dir(projectDirectory); QStringList test = dir.entryList(); qDebug () << projectDirectory << "contains:" << endl << test; mediaPlayer.setMedia(QUrl::fromLocalFile(projectDirectory+"/video.mov")); The code