602 questions
1
vote
1
answer
100
views
Source path does not exist during folder migration from one Windows PC to another using Python script
I wish to migrate a folder tree structure from one Windows PC to another by running a python script on the destination PC. Here is the code I am using:
import shutil
import os
import sys
import ...
Advice
0
votes
1
replies
48
views
SSRS Report External UNC Image File - If Not Found - Default Image
In my dataset for an SSRS report, I have a column that is comprised of a path and a file name of an image, dynamically created by each user's user id, as that's how the images for their pics are ...
0
votes
1
answer
107
views
Why am I getting BAD_NET_NAME error from WNetUseConnection with IP Address?
Context
I have a function in my app's code that connects (via WNetUseConnection) to a windows fileshare on specified devices on the network the machine that is running the app is connected to. This is ...
2
votes
0
answers
92
views
.NET 9 Application Fails Silently When Run from UNC Path on Windows 10/11
I'm encountering a strange issue when running a .NET 9 console application from a UNC path (e.g., \\computername\c$\folder\app.exe) on Windows 10 and Windows 11.
Symptoms:
The application crashes ...
0
votes
0
answers
66
views
Application.GetOpenFilename for a UNC without using Kernel32
My company has recently instituted some significant security upgrades that disallows the calling of Kernel32.dll using VBA. Without this I can't call Application.GetOpenFilename and set the network ...
0
votes
2
answers
161
views
SAS calling external process with network path
On SAS Windows, I have a SAS script calling an external .bat file. I use the following:
%SYSEXEC("\\mymachine\order\mypath\running.bat");
which does not recognise the path and default to a C:...
0
votes
1
answer
182
views
Accessing Virtual Directory from Code Behind
In IIS I've created a virtual directory (called WEB1FTP_USERS) that is a UNC to another server. When choosing the Connect As property I chose the admin account we use when logging in to the server and ...
0
votes
1
answer
87
views
ODBC error when trying to connect MS Excel to SPSS file on fileserver
I want to load SPSS Data into Excel using an ODBC connection. I am successfully connecting Excel to a local SPSS file using the IBM SPSS Statistics Data Drivers. But when I try the same with a copy ...
0
votes
0
answers
73
views
File transfer between 2 different IIS servers with virtual directory
There are 2 IIS servers in my internal network. I created a virtual directory among them. 2 of my servers are connected to active directory. I granted the necessary permissions and gave full ...
1
vote
1
answer
218
views
Unable to perform actions on UNC path / network drive
I'm trying to create an installer with WiX that has a step that writes to a network drive via a UNC path, but no matter what I do, I run into the error "Could not access network location":
...
0
votes
0
answers
370
views
Windows OpenSSH access of UNC path appears limited to read only?
I have a windows machine (AWS instance) that can visit and mount a shared network drive (samba/linux).
When I am on the windows machine itself via RDP I can visit the path, mount it as a drive, make ...
0
votes
2
answers
241
views
In Python, how do I iterate a long path name through glob and read in all files in Windows?
I'm trying to write a Python script where I use glob to get a list of file paths, and then read them through pd.read_csv() to make one big data frame. This script works great on a Mac. However, I was ...
0
votes
0
answers
138
views
How do I set up access to a DFS location using its UNC through a virtual directory in IIS?
I have inherited this old WebForms site that I am attempting to migrate to Windows Server 2022 on VMWare because the server it is currently running on is being retired.
The web site has links to a ...
0
votes
0
answers
427
views
Access a UNC path with .NET Core Web API
I have an endpoint that access a remote folder (UNC path) with some images. Locally, I have been able to do it and get the image, but if the Web Api is published in IIS, the return says my credentials ...
0
votes
1
answer
48
views
file transfer bewteen two windows machine,but the files will be deleted immediately
Two Windows A and B There is a directory D on top of A, which can be accessed by B. There are always 25M files generated under directory D, which will be deleted in about 100-200ms. How can all the ...
0
votes
0
answers
121
views
Files not being written to mapped network drive on windows using python script
I have a python script which accesses a mapped network drive on Windows OS and creates a file in the mapped location to write. Here's the code to write.
output_file = f"{output_dirPath}/{...
0
votes
0
answers
92
views
IIS Application Pool Active Directory Identity UNC Path Access
We are hosting a third party application that access a UNC path in the appplication.
We have the app pool running under an AD account that has permissions to the UNC path.
The application will work ...
0
votes
1
answer
227
views
add hyperlink in Word to network printer
Using Powershell 7.3.6 to add a hyperlink to a Word 2016 doc.
The hyperlink needs to be a network printer like this:
\SERVER1\Printer1
When clicking on the link in Word, I get the error, "Cannot ...
0
votes
0
answers
34
views
Moving files from UWP storage to NAS
I'm writing a TimeLapse photo app. It'll grab an image every 5 mins and store to local storage. Another timer will sweep these files onto a NAS when it's online.
The problem is I can't figure out how ...
3
votes
3
answers
9k
views
Why Python imports cannot be resolved by Pylance in VS Code, if the package is located in a shared folder?
I am using Pylance extension in VS Code. Some packages import cannot be resolved by Pylance. I found out that these packages are located in a shared folder and the UNC Path of this folder is in the ...
1
vote
0
answers
97
views
Can Visual Studio Code be configured to "Save as..." starting in the same folder where the currently open file already exists on a UNC path?
Observation / Issue
Expected and desired: With a file open from a folder on a drive letter C: D: etc whether mapped or local, the "Save As..." function will open the save dialog in the same ...
0
votes
1
answer
217
views
Read files on UNC path using File Connector - WSO2 EI(Linux)
How to Read files on UNC path using File Connector on WSO2 EI(Linux)? I am getting the below error while trying to read the file in a UNC location
WARN {API_LOGGER.FileMigration} - Executing fault ...
2
votes
1
answer
1k
views
Powershell get-childitem works different with long-path prefix (\\?\)
I have different results in these two cases:
case 1: Get-ChildItem -Path "\\?\UNC\very\long\path"
case 2: Get-ChildItem -Path "\\very\long\path"
If the long path is less than 260 ...
0
votes
1
answer
795
views
How to return the UNC path of a remote folder and the local path of a local folder
I have a shell extension which allows users to right-click a folder and then passes the path as an argument to a utility.
To work in a network environment, it has to resolve any mounted drives. For ...
1
vote
0
answers
385
views
VBA throwing run time error : 76 - Path Not Found
I am trying to create a macro based VBA wherein the code will access sharepoint files do some file moving, copying as well as some data manipulation activities. While using UNC path for sharepoint ...
1
vote
1
answer
3k
views
How to avoid 'UNC paths are not supported' error when setting up VS Code for Motoko on Windows 10?
I'm on Windows 10 and trying to set up VS Code to work with Motoko. I installed WSL and the extensions to connect remotely on VS Code, to do the hello-world sample project you can find here: https://...
0
votes
1
answer
6k
views
"The network name cannot be found" error while accessing SMB thru C#
I am doing a programmatically access of a SMB Network Shared Drive using C#
I saw this thread How to provide user name and password when connecting to a network share which let's you define UNC path ...
35
votes
4
answers
57k
views
The host '...' was not found in the list of allowed hosts. Do you want to open it anyway?
Since updating to Visual Studio Code v. 1.78.2 this warning has been popping up. It is appearing because the folder I am working out of is using a UNC path. I rely on this path.
The VS help page ...
0
votes
0
answers
115
views
Classic ASP SQL openrowset query with UNC is being denied because of permissions when it previously worked
I have an sql query that retrieves data from a network .csv file using OpenRowSet:
select * from openrowset ('Microsoft.ACE.OLEDB.12.0', 'Text;Database=\\1.1.1.1\C$\temp', 'Select * from test.csv')
1....
1
vote
0
answers
73
views
server IIS PHP UNC PATH stop working (is_file(),file_extist()) with share folders
A php application working on windows IIS server (Active Directory), need to read a shared file on different server.
"the site" have windows authentication.
it worked for years. Suddenly last ...
-1
votes
1
answer
101
views
How to increase the speed of checking files for existence for network resources&
I have tried various options. At first it was File.Exists(). But it runs for 2 seconds on each element. And I have, for example, 60 elements. It takes 2 minutes.
Then I tried getting a list of paths ...
0
votes
1
answer
1k
views
With Powershell I want to read a UNC-path from within a file
I'm still a powershell rookie, but thanks to you I'm learning ... :-)
I have a simple text file, let's say its name is "text.txt".
In this text file there are some words (bla bla) followed ...
0
votes
0
answers
262
views
How to validate UNC paths and mapped folders paths in Java
I need to write in java a static method which validates both UNC paths and local files and folders (for mapped drives).
The method should validate strings like "\\\\computer\\folder\\file.txt&...
0
votes
1
answer
219
views
Powershell: How can I get the UNC path from an OpenFileDialog without the leaf?
I'm still a beginner in Powershell...
I'm using the OpenFileDialog to give the user the possibility to choose a file on the network.
Add some .net Assembly for OpenFileDialog and MessageBox
Add-Type -...
0
votes
0
answers
261
views
How to read a file from authenticated network share or UNC path from an ASP.Net Core web application hosted on IIS?
I have a UNC/network share(Windows FSX) and I would like my ASP.Net Core Web application to read the files from this network share. I tried to use SimpleImpersonation nuget package, however it seems ...
-3
votes
1
answer
571
views
How to map a UNC name to an external drive when the drive letter is variable? [duplicate]
I have an external drive. When I plug it in, sometimes it comes up as d: and sometimes as e:. I presume depending on whether I've plugged anything else in lately, like a USB drive, but whatever. I ...
1
vote
0
answers
457
views
Python - Read txt files from Network shared drive
I am trying to read in data from text files that are moved into a network share drive over a VPN. The overall intent is to be able to loop through the files with yesterday's date (either in the file ...
2
votes
0
answers
340
views
How to start click-once application .application file on UNC path with Windows Task Scheduler?
I've found quite a few posts on the net describing a similar or even the same situation but there were almost no replies and none that helped me get this working.
The setup is rather simple. I have a ....
0
votes
0
answers
1k
views
Programmatically access PC or Folder/Files in the network (LAN) which is shared in private network
I am trying to build file manager tools for window PC, I already build tools for drives (c:, d:, e: ..) where I can delete, edit files and folders.
My problem is, I am trying to do the same thing (...
0
votes
0
answers
142
views
Network path is not shared when trying to create folder with sharing everyone using c#
I have a wpf application in which i try to create folder on client machine and give sharing permission to everyone as i want to transfer crystal reports to those folders (unc network folder).I am able ...
0
votes
0
answers
169
views
Problems converting C# UNC path conversion code to VB.net
I have a function in a C# application which is perfect for a VB.net application that I need to extend.
The function takes a path which could be a local folder or a network share, and if it's a network ...
0
votes
0
answers
118
views
SQL Server Bulk Insert from UNC location returning no records and no errors
I have a CSV file on a network drive that I want to load using bulk insert in a stored procedure in SQL Server. This CSV file has record delimiters like "text1","text2" etc. The ...
0
votes
1
answer
289
views
How to share Azure File Share data with the stakeholder within the organization?
I am trying to find an easy way to share some files (each of size 7GB or more) with the stakeholder within the organization. These large files are sitting on Azure file share. I tried to access UNC ...
1
vote
1
answer
1k
views
Convert Windows/MacOS links and share them with colleagues
Is there an easy solution for Windows/MacOS link conversion to share links with colleagues?
I have a windows link for e.g.:
\\networkshare\folder\subfolder
and i want to convert to:
smb://...
0
votes
0
answers
1k
views
Use Process.Start to open explorer.exe window to UNC path that requires login
I would like to open a Windows Explorer window to a UNC path that requires a login outside of my network using System.Diagnostics.Process.Start. I do not want or need to pass credentials to actually ...
1
vote
0
answers
727
views
How to easily access Windows file server paths on a Mac?
I am trying to easily convert Windows server paths (UNC) into Mac server paths (SMB). Currently I paste the link to a text editor and "find and replace" every character to an SMB format.
I ...
5
votes
2
answers
9k
views
How can I map a \\wsl$\ type unc path to a windows drive letter?
I'm using eclipse on windows to connect to files on a wsl, and I have run into what is apparently an eclipse bug which file names such as \wsl$\folder1\pom.xml get mangled.
https://bugs.eclipse.org/...
0
votes
1
answer
999
views
Invalid python path when configuring VS Code's python virtual environment
My goal is to use the VS Code's python debugger with a venv under a UNC path. I've tried setting the default interpreter path (settings.json) and also the debugger's python path (launch.json). The ...
0
votes
0
answers
929
views
Accessing a UNC share on a web server is causing a WebDAV PROPFIND request
Since a recent web server migration to Windows Server 2019, when someone tries to access files in a UNC share remotely via VPN (programmatically or via File Explorer) , it causes a WebDAV request with ...
0
votes
0
answers
232
views
Is there an overhead for opening or closing UNC paths in a FileStream that can be overcome by slowing down?
I'm trying to transfer a large file in "chunks" that then have their hashes validated. I am looking into some performance issues, particularly in UNC paths, and I wrote an IO test that ...