202 questions
0
votes
0
answers
29
views
Mac VBA for pdf is sending file to print rather than creating and saving in folder
I have the below code which is working in principle but seems to be sending the file to my printer and not creating a folder and saving the pdf there.
Have a sheet that needs to be pdfed and saved in ...
1
vote
1
answer
1k
views
Android 12 AOSP: How to prevent creation of the media folders on external volumes?
I am building a custom device with Android 12 AOSP, which does not need the management of media files. Every time I plug in a USB stick - it gets populated with a bunch of folders like Music, Movies, ...
0
votes
0
answers
425
views
Changing the locations of shell folders from registry paths is not taking effect
I am trying to change the location of windows specials folders (documents, downloads, pictures, etc.) from windows registry:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User ...
1
vote
0
answers
120
views
Install fails on Windows 11 with OneDrive
I've had at least two users complain about our myapp.msi quickly failing, rolling back and then exiting without any messages. This just got reported again by an internal tester running Windows 11 (I ...
0
votes
1
answer
1k
views
How can Windows service running as System account get current user's \AppData\Local\ special-folder?
My app is a windows desktop exe, and windows service which runs under the System account. My windows service needs to integrate with a 3rd party app that the user will also install which stores some ...
1
vote
2
answers
402
views
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 ...
2
votes
1
answer
412
views
How do I create output folder for MSVC generated files in Visual Studio Code?
I am following the tutorial here which shows how to use the VS C++ in Visual Studio Code.
Everything runs smoothly. The only problem is the auto-generated files (.lnk, .pdb, .exe and the likes) get ...
1
vote
2
answers
1k
views
Is there any way to get Environment.SpecialFolder from file path?
I have a requirement where I want to get the Environment.SpecialFolder value from a file path.
Eg -
string filePath = @"C:\Program Files (x86)\text.txt"
//SpecialFolder sf = ...
0
votes
2
answers
359
views
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 ...
1
vote
1
answer
578
views
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 ...
0
votes
0
answers
60
views
Change the paths to user folders(Shell Folders) with Powershell [duplicate]
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 ...
1
vote
1
answer
8k
views
%USERPROFILE%/Desktop no longer valid after relocating Desktop folder to OneDrive [closed]
I've moved my Windows 10's /Desktop folder to a different location.
As a result, my batch and Powershell scripts that were pointing to %USERPROFILE%/Desktop no longer worked. Is there another way to ...
1
vote
0
answers
159
views
How to store a special folder path in Settings.settings c#?
I am trying to insert in Settings.settings a special folder path (MyDocuments).
I currently use this: Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) but hardcoded. I don't want to ...
1
vote
1
answer
565
views
Echo directory opened by shell:startup
When entering start shell:startup into the command prompt, it opens a new window at the startup folder. How can I print the path to that folder but not actually open the folder in explorer?
2
votes
2
answers
3k
views
Execute Windows run dialog command in command prompt
In the Windows Run dialog, I can use the command shell:startup to open the user's startup folder.
In hope to be able to use the command in the Windows command line, I tried typing shell in the ...