Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I am trying to export connection groups [.RDG files] configured in RDC [Remote Desktop Connection] Manager. Is there a way to do this?
N.B. I could not get hold of the file in the file system.
I just figured it out myself. Just select the group, Choose File -> Save As -> filename.rdg. :-)
Although when you use the Open/Save commands in RDC Manager it shows the path:
C:\Program Files (x86)\Remote Desktop Connection Manager
When you actually search for .rdg files across the pc, you will find that these are in fact stored in a virtual store.
Try access the following location:
C:\Users\Your User\AppData\Local\VirtualStore\Program Files (x86)\Remote Desktop Connection Manager
From the VirtualStore location, you can copy and paste the files to make it easy to transfer between different pcs.
If you try right-clicking on the group you will only see the SAVE option. The interesting thing is, it appears that your saving a "file" as the file explorer dialog will come up. If you save the file, (say: testRDCPgroup.rdg) and browse to the default directory: C:\Program Files (x86)\Remote Desktop Connection Manager; you will not find that file (!). If you go back into RDCM and choose OPEN, and browse to that location, you can OPEN the "ghost" file [I just double checked that show hidden files and operating system files is enabled, so I can see both].
This took me about an hour to figure out too, if you select the group and go into the MENU you can do the SAVE AS; which will allow you to save the .rdg file to a different location.
The .rdg file created from the menu opens beautifully on another computer using file->Open.
One of those things that is EASILY overlooked and will have you feeling like it's your first day on the job.
How to Export your RDP connections -
C:\Users(Your USER
PROFILE)\AppData\Local\Packages\Microsoft.MicrosoftRemoteDesktopPreview_8wekyb3d8bbwe\LocalState\RemoteDesktopData\LocalWorkspace
1) follow the above directory
C:\Users(Your USER
PROFILE)\AppData\Local\Packages\Microsoft.MicrosoftRemoteDesktopPreview_8wekyb3d8bbwe\LocalState\RemoteDesktopData\LocalWorkspace
2) Copy the Folder called Connections
C:\Users\CYBERPOWER\AppData\Local\Packages\Microsoft.MicrosoftRemoteDesktopPreview_8wekyb3d8bbwe\LocalState\RemoteDesktopData\LocalWorkspace**connections**
NB: the file is locked try to copy in SAFE MODE or USE Backup software to backup this folder - it might not work if you copy this folder just like is...
Import - Make sure you have downloaded the app on your new device https://www.microsoft.com/en-za/p/microsoft-remote-desktop/9wzdncrfj3ps?rtc=1&activetab=pivot:overviewtab
or
https://aka.ms/rdapps
1) past & replace in new location
C:\Users\CYBERPOWER\AppData\Local\Packages\Microsoft.MicrosoftRemoteDesktopPreview_8wekyb3d8bbwe\LocalState\RemoteDesktopData\LocalWorkspace\connections
NB:it might say you do not have permission...
give your folder Permission and try again.
You can just log out and log back into your Profile and this will take affect.
NOTE: This is for the Remote Desktop Client. https://aka.ms/rdapps
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
The vx570 has a USB port that I know you can use as a software download vector, but when I tried it, I was unable to initiate the download process. There is nothing in system mode that would allow me to to execute a program like DDL, which we use for serial (RS232) downloads. What do I need to do to initiate the download and how do I specify where the files should go?
Yes, this is actually pretty simple.
1) Create a folder for each file group you want to put data in. So if you want to put something into RAM in file group 3, then name the folder 3. If you want to put something into FLASH in file group 3, then name it F3. You can mix at match at will so if you are going to load your program in to file group 3 and it has both RAM and FLASH components, then you would have a 3 folder AND an F3 folder. If you were also loading VMAC, then you would ALSO have a 1, F1, 15 and F15.
2) Package all this stuff up into a .zip file. You MUST name it Verifone.zip Put this file onto your USB thumb drive at the root level.
3) Go into system mode and press '#' to start a full download into group 1.
4) Insert the thumb drive into the USB slot on the 570. The terminal will see that there is a file called Verifone.zip and will guide you through the rest.
There is one potentially tricky thing about all of this and that is the config.sys variables. Since you aren't using DDL.exe, you don't have a way to set them during the download. You CAN, however, load the config.sys file directly to the terminal as part of the download. The problem is that it is a compressed format file, so if you were to look at it in notepad, it would contain a bunch of junk like äåöíáîæéì. The only way I know of to generate this file is to use the "Direct Upload Utility" as found on VeriFone's DevNet site. As it turns out, it will also do the rest of step 1 (above) for you, as well.
1) Download DUL from DevNet onto your computer
2) Using DDL.exe (or whatever you have been using to set up terminals in the past), configure a terminal to be in the exact state that you want your future downloads to be in.
3) Connect the terminal to your computer and run DUL. Use the * wildcard to specify that you want all files to upload to your computer. See DUL's documentation for more details.
4) Optional: DUL's naming convention is to prefix RAM folders with I and use 2 digit group numbers. I suspect this will work, but I always change mine to single digits and drop the I for RAM groups.
I've run into a request for a new Nagios monitor to ensure that a system is processing inbound records. The system in question is a Windows box and I'm monitoring several other things there with check_nt. The parameters that I have been given is to check a specific directory and alarm if there are more than 5 files in that directory which is indicative of the MSSQL stored procedure not pulling the files properly.
I have been having no luck finding a complete list of all the options available for check_nt. For instance, I do check a specific log file on another Windows server for activity using the "FILEAGE" option for check_nt but I sure can't find any reference to that any longer and I'm honestly not sure how I found the syntax for that years ago when I initially setup that particular check.
Anyone have any ideas how to get a count of files in a specific directory using check_nt?
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 months ago.
Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.
What is use of these two directories in Apache 2 and how can we do it?
The difference is that virtual sites listed in the sites-enabled directory are served by Apache. In the sites-available directory there are the virtual sites that exist on your server, but people can't access them because they are not enabled yet.
sites-available: this directory has configuration files for Apache 2 Virtual Hosts. Virtual Hosts allow Apache 2 to be configured for
multiple sites that have separate configurations.
sites-enabled: like mods-enabled, sites-enabled contains symlinks to
the /etc/apache2/sites-available directory. Similarly when a
configuration file in sites-available is symlinked, the site
configured by it will be active once Apache2 is restarted.
See https://help.ubuntu.com/lts/serverguide/httpd.html.
Important information
If you are still using sites-available/sites-enabled pattern, you should edit files only in the sites-available directory.
Never edit files inside the sites-enabled directory. Otherwise you can have problems if your editor runs out of memory or, for any reason, it receives a SIGHUP or SIGTERM.
For example: if you are using nano to edit the file sites-enabled/default and it runs out of memory or, for any reason, it receives a SIGHUP or SIGTERM, then nano will create an emergency file called default.save, inside the sites-enabled directory.
So, there will be an extra file inside the sites-enabled directory. That will prevent Apache or nginx from starting. If your site was working, it will not be any more. You will have a hard time until you find out, in the logs, something related to the default.save file and, then, remove it.
In the example above, if you were editing the file inside the sites-available directory, nothing bad would have happened. The file sites-available/default.save would have been created, but it wouldn't do any harm inside the sites-available directory.
Update
The sites-enabled/site-available pattern is deprecated, according to The Complete NGINX Cookbook in NGINX official site.
The /etc/nginx/conf.d/ directory contains the default HTTP server
configuration file. Files in this directory ending in .conf are
included in the top-level http block from within the /etc/
nginx/nginx.conf file. It’s best practice to utilize include state‐
ments and organize your configuration in this way to keep your
configuration files concise. In some package repositories, this folder
is named sites-enabled, and configuration files are linked from a
folder named site-available; this convention is deprecated.
Instead of using sites-enabled/site-available pattern, just add a your-site.conf under the /etc/nginx/conf.d folder.
You configure your site mysite by creating or editing the file mysite.conf in sites-available (you can also configure several sites in the same .conf file, if you prefer).
After this, for publishing the site you must create the correspondent symlink in folder sites-enabled. In Ubuntu you can do it like this:
a2ensite mysite (with sudo, if necessary; and without the final .conf)
And then you must reload Apache:
sudo service apache2 reload
Later, if you want to modify the configuration, you only touch the mysite.conf file in sites_available. Changes apply automatically in sites_enabled, through the symbolic link. Just remember to reload Apache.
I've encountered a strange situation and I cant find any information for why it's keep happenning.
My enviorment: I got couple of terminals servers in my domain. I got all the users profiles stored in a diffrent "Main-server". When a user logs in there is a startup script that runs and copy the icons for the user-desktop to its currnet session from the "Main server". One of this icons is a shortcut to a batch file. The batch file itself is located in each of the Terminals servers, and the path for the shortcut is "C:\1st-dir\2nd-dir\run-script.bat".
The strange situation: When I press right-click on the shortcut and choose "Edit", the batch file itself is openned - no supprises here. I then close the file with no changes but now I see that the path for the shortcut have changed, and it's now go to "\\Terminal-serverX\C$\1st-dir\2nd-dir\run-script.bat". Even thou I got couple of terminals servers, it's keep reffering to the same one. I repeated this on diffrent shortcuts and got the same result.
Anyone know why does this happen ?
Looking closely at your post, the original C: got changed to \\Terminal-serverX\C$ when you used the short-cut.
It sounds like 'automated shortcut resolution' might be going on.
From the Microsoft page Disabling Automatic Network Shortcut Resolution
When you create a shortcut to a resource on a mapped network drive, and then remap the same drive to a different network resource, Windows attempts to connect to the original network resource when you access the shortcut.
Furthermore, when you re-establish the original connection, a different drive letter may be mapped to the original resource. This may cause programs to fail because the expected drive mappings are not present.
(I can't tell from your question what OS you are using, and admitedly that page only refers to Windows 95 and NT - so the details might be slightly different for a newer Windows version, but it does look very much like what you described)
I have started coding an FTP client application (for fun). I’m trying to represent remotely hosted files with icons. For example, let’s say I’m browsing the root folder of an FTP server (/) and want to display the Backup.zip file with the icon association from that client operating system. On some systems, this may be the windows compression icon and other operating systems this may be WinZip or WinRAR icons.
I have the client browsing local files with the SHGetFileInfo() function. This works great with files that are local, however, this function requires the physical file in order to retrieve the associated icon. So, this will not work with remotely hosted files. I have found some samples of loading icons given a file extension, and this is really where the question comes in... What would be the best strategy to get icons associated to remote files?
Go to the registry every time and look up extension to icon associations
Create 1 byte files with each extension and use the SHGetFileInfo() function for remote files (using local 1 byte files as association for remote files)
Other strategies???
What would a professional software company creating an FTP client do?
Thank you for your time.
-Jessy Houle
I suggest that you don't go to the registry every time: go if you need to, but if you've already been for a given filetype then remember/cache that result (within your program) and reuse it.
Use the procedure here from a previous Stack Overflow question on the same idea and uses the registry instead of an actual file.
How can I get the filetype icon that Windows Explorer shows?