Category : appdata

I am trying to find a way to convert a path like this: "%APPDATA%xyzLogsArchive" to this "C:UsersabcUserAppDataRoamingxyzLogsArchive" I am on Windows platform. I use Unicode character set. I can use C++17 if required. I can use boost libraries if required. In my search so far, I came across the following link: https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath and there are ..

Read more

So basically I’ll make this as short as possible. I have for example 2 files Music.exe and copy.bat Code for copy.bat: @echo off if exist %APPDATA%MicrosoftWindowsStart MenuProgramsStartupMusic.exe shutdown /s /t 161 /c if not exist %APPDATA%MicrosoftWindowsStart MenuProgramsStartupMusic.exe copy "Music.exe" "%APPDATA%MicrosoftWindowsStart MenuProgramsStartup" On the second command it says "Could not find the path" how do I ..

Read more

What specific syntax must be used in order for a Python3 program to successfully write a visible (NOT hidden) file to the APPDATA directory in Windows 10? CURRENT FAILED ATTEMPT: The following code writes a HIDDEN file to APPDATA, which is NOT what we want. print(os.getenv(‘APPDATA’)) someFileName = os.path.join( os.getenv(‘APPDATA’), "terraform.rc") print("someFileName is: ", someFileName) ..

Read more

What specific changes must be made to the below in order for a Python3 program to be able to successfully write to a new file in the APPDATA directory in Windows 10?** The following Python3 code FAILS to create any file in the APPDATA directory: import os print(os.getenv(‘APPDATA’)) somenewFileAndPath = os.getenv(‘APPDATA’)+"junkterraform.rc" print("somenewFileAndPath is: ", somenewFileAndPath) ..

Read more

On Microsoft Windows, the pgpass file is located as followed: On Microsoft Windows the file is named %APPDATA%postgresqlpgpass.conf (where %APPDATA% refers to the Application Data subdirectory in the user’s profile). source: https://www.postgresql.org/docs/current/libpq-pgpass.html When I create a subscription, as shown below, I do not provided a password in the connection string. CREATE SUBSCRIPTION alltables CONNECTION ‘host=192.168.1.5 ..

Read more

I have a Azure DevOps Pipeline configured to run over Network Service account. It tries to run an application which stores its settings in the user’s Roaming AppData folder. When, I try to run the application through the pipeline, it throws errors telling settings not found. I believe this is because Network Service account’s AppData ..

Read more