Questions tagged [special-folders]

"Special folders" refers to directories in the Windows operating system that provide extended functionality in the user interface. Prominent examples are the "Desktop", "Start Menu", the "My Documents" and the "Fonts" folders.

The physical location and the number of special folders depend on the Windows version and system language.

Windows transparently manages the correlation between physical location on the disk and representation in the shell namespace, so these folders are best retrieved through the Windows API, as opposed to using fixed paths.

200 questions
0
votes
2 answers

Blocking public documents folder for write access?

In the last time I've seen a rising number of customer PCs (Windows 10/11), where my c# software was not able to write in a subfolder of C:\users\public\documents, although the user running it is able to manually write there. In a few cases I've…
0
votes
2 answers

Batchfile to delete all folders but the latest AND a special folder

hope you can help me. I am looking for a way to use batchscript to delete all folders in a subfolder except the very newest folder AND a special folder named "BACKUP". So the backup folder can be older, but it needs to be kept. All other folders…
ZuMe
  • 11
0
votes
1 answer

Parsing string containing Special Folder

I've allowed for custom paths to be entered and wanted the default to be something along the lines of: %UserProfile%/Documents/foo, of course this needs to successfully parse the string and though it will work in Windows Explorer, I was wondering if…
TobyL
  • 3
  • 3
0
votes
2 answers

Displaying files from out of httpdocs location

The files are going to be stored in a folder next to httpdocs. Thus, it will make hard to display those files to internet user. How I'll overcome this problem? I mean, I want to display/serve those files to the users. Probably I need to use some…
ilhan
  • 8,700
  • 35
  • 117
  • 201
0
votes
3 answers

Mac OS folder locations

We have an application that we're porting to Mac OS from Windows. Once installed, the user can customize the functionality of the application by editing certain approved "data files" with a text editor. Once saved, the application can be reloaded to…
Colen
  • 13,428
  • 21
  • 78
  • 107
0
votes
3 answers

create unique Application Data directory for each instance of an application

I have written a c# application that it is installed as many instances, on different directories defined by the user. e.g. C:\Program Files(x86)\MyApp1 C:\Program Files(x86)\MyApp2 C:\MyApp1 C:\MyApp2 ... I want to write/read data files in…
0
votes
0 answers

Change the paths to user folders(Shell Folders) with Powershell

How to change the paths to user folders (Shell Folders) with Powershell? Required: get the path to the folder $mydoc = [Environment]::GetFolderPath('MyDocuments') C:\Users\shay\Documents Change the drive letters in a variable $mydoc -…
antarey
  • 29
  • 5
0
votes
1 answer

Environment.GetFolderPath returning incorrect address

Why does string AssignmentTypesFilename = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\SchoolDayManager\AssignmentTypes.txt";` always return "C:\\\Users\\\Travis…
Muckdog12
  • 11
  • 1
0
votes
1 answer

How to get the path to a file in the Local App Data folder created by ClickOnce

I have a WPF project that I want to deploy via clickonce. I have a folder named "Data" with some files in it which will be created by clickonce in Local App Data folder when I install the application. I want to access those files but I am unable to…
0
votes
1 answer

how to get the download path using VBSCRIPT

I need to get the download path of a desktop using vbscript. So I need a syntax like MyDoc = Ws.SpecialFolders("Mydocuments"). Have you any idea ?? Best regards
YOUSYS
  • 11
0
votes
1 answer

Adjusting a VB Script to Programmatically Create a Folder triggered by an E-mail

This is my first time asking a question to y'all. I'm a SQL Developer by trade, and am very green when it comes to VB. I manage a on-line database for my department, Quickbase, and with this website we manage report requisitions. I create a ticket…
MooNinja
  • 1
  • 1
0
votes
1 answer

Forticlient fcconfig .bat

I´m trying to make a .bat that executes Forticlient and import a backup with SSLVPN configuration, so the user only have to login with his credentials. When I execute the .bat file it says Access denied, it opens Forticlient but doesn't import the…
0
votes
2 answers

Create a text file in %temp% and write content in it using vbs

Basically, I want to create a new file and write in it in a directory on the PC, pointed to by the %TEMP% variable. However, the revised code below does not work: Dim oFile Dim shell Set oShell = CreateObject("WScript.Shell") user =…
mini kumari
  • 13
  • 1
  • 5
0
votes
1 answer

Accessing AllUsersApplicationData at install time

I am preparing a custom action that copies a file to a specific location. Existing users of the application will already have the file in the SpecialDirectories.AllUsersApplicationData location. So I want to check there first. However, at install…
sasfrog
  • 2,410
  • 1
  • 17
  • 28
0
votes
1 answer

Get Users folder from different drive

My question is about to delete a shortcut from all user's desktops. I've updated my Dektop folder from C:\Users\\[User]\Desktop to G:\Users\\[User]\Desktop because I've some important data on desktop and I don't want to lose any user data if I…
Inaam ur Rehman
  • 470
  • 1
  • 6
  • 23