pgAdmin4: Save results to file - file doesn't show - windows

I am trying to save a CSV file of my SQL query in PgAdmin 4 to my local files (I am a beginner so please excuse me if the terminology is not correct). I clicked the "save result to files" button and selected the folder where I want it to be saved. When I look into this folder, there is nothing there. However, if I look into my "last used files" in my Windows explorer (sorry, I am translating this from German), there are the files, I just can't open them. When I clicked on them Excel opens and says it couldn't find it.
I also tried to save the files by writing a command under the query, didn't work either.

Related

Emeditor: run a macro for all file inside a folder?

How to run a (previously recorded) macro for all files inside a folder ?
Example : I have recorded a macro that is working correctly for an opened html file. I have saved the macro as "test.jsee".
I have a folder in my computer named "C:\folder_with_files". It is full of html files.
How to run "test.jsee" for all files inside the folder "C:\folder_with_files" ?
ps: same question if many subfolders contains html files inside the main big folder "C:\folder_with_files" ?
pps: my idea is that Emeditor opens one file, run the macro, close the file (I have already saved the updated file in my macro) and do the same for the next file.
There are two ways to accomplish your task.
Select Run with Temporary Options on the Macros menu. Select the macro, set the Run the macro against each opened document option, add (or drag and drop) files or folders to the list, and set the Save and close each document after running the macro if necessary.
Or
Select Advanced Open on the File menu. Set the Run a macro against each opened document, select the macro, click the Select Files to Open... button to select all files you want to open.
If you can't see these commands, please make sure you are using the newest version of EmEditor Professional.

how to convert .iif file to .csv file in visual foxpro?

I need to convert .iif file to .csv file in visual FoxPro can you please let me know the code, I have no idea how to do this, can someone please help.
Open your Microsoft Excel, and go to the File menu.
Click New, and select Blank workbook.
Click the File menu, and select Open.
Go to the folder location, and look for the file name. You can set the file type to All Files so you can easily find the IIF file.
Click Open.
Go to the File menu, and click Save As.
Choose a location to save the file, and enter the file name. Make sure the Save as type is Excel Workbook.
Click Save.

Take multiple .zip files and extract them to external location

This is something that I thought would be extremely simple to do. A math teacher handles her notes through Dropbox and gets .zip files emailed to her containing updates (by updates- they're the full folders so she can delete the old and extract the new ones in their places). She asked if it was possible to extract the zip files, then copy them to the dropbox. Coming from a Linux/Mac point of view I thought it would be easy- unzip command with -d... Little did I know Windows doesn't support unzip. I've tried googling ways to do this, and found that windows doesn't seem to have a default 'unzip' command of any kind? And when trying to copy the files, wildcards don't work either??? She gets 7+ .zip files at a time, all are named "Unit (number).zip" So I was using Unit*.zip. Any help/ideas would be appreciated- I already suggested she tries ubuntu because she constantly states how she likes the way my laptop looks.
WinZip can quickly unzip multiple files through its drag and drop interface. You can select multiple WinZip files, right click, and drag them to a folder to unzip them all with one operation.
From an open folder window, highlight the WinZip files you want to Extract
Right click in the highlighted area and drag to the destination folder
Release the right mouse button
Choose WinZip Extract to here
To unzip multiple Zip files without drag and drop:
From an open folder window, highlight the WinZip files you want to Extract
Right click in the highlighted area
Choose WinZip Extract to ...
Enter the destination folder
Source http://kb.winzip.com/kb/entry/77/
You can easily use the GUI for this:
Here is a trick I have found for extracting multiple zips at once without installing any extra programs:
Select the zip files that you want to extract
Right-drag them to an empty space (in the same folder is fine)
Select Extract and follow the prompts
Yes, it is not quite as nice as using the command prompt, but it does get the job done.
Also, wildcards do work with command prompt. Perhaps you weren't issuing the command correctly. This command works fine for me:
copy Unit*.zip D:\folder2\

Force Firefox not to change file extension?

Is it possible to force Firefox not to change the file extension of a file the user downloads? Currently I have the problem that I have a .reg file to download, but Firefox, even though in the Download dialog it says "Text file (*.reg)", saves it as a .reg.txt file, which is highly annoying. How to fix this?
You could try to do the following things:
1.) https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file
Maybe extension (in your case .reg) is associated with Notepad and you could changed it in Options/Applications
a) Click the menu button and choose Options.
b) Select the Applications panel.
c) The Applications panel will display. Select the type of file for which you want to change the default action.
2.) https://bugzilla.mozilla.org/show_bug.cgi?id=511624
This is an old bug, but if you use the affected version of firefox...
When you right click on a link to a batch file and click save as, it will allow you to save it, but it automatically adds .txt to the end of the filename without informing you.
You are unable to save it as .bat
Reproducible: Always
Steps to Reproduce:
1.Right click on a batch file link
2.Click save as
3.Save it
Actual Results:
filename is file.bat.txt
Seems to be a Firefox on Windows bug. My coworker was implementing download of .reg files and I use Firefox, I tested for him and got a .reg.txt. Just renaming it after download was sufficient to make the .reg work, but I got curious if that would happen on Linux also.
Grabbed my laptop where I have Ubuntu installed and the file was downloaded with the correct extension (just didn't run because .reg is a windows extension, it did open in the text editor). It was not automatically renamed as a .txt.

when viewing details of a shelveset, when i double click the .cs or .sql files, why it opens in notepad?

i have gone through the this post and it says that the files take the automatic behavior of the windows to open the .cs and .sql files.
in my case when i open these files from a folder it opens up correctly in vs and sql server for .cs and .sql respectively.
Can anyone tell me how to open a file in a shelve in any editor other than notepad?
i have also checked the file types tab in folder options.
I believe you are using the VS Shelveset Dialog which is modal - maybe that's the reason "they" designed the View function to spawn a new process of notepad. It's unfortunate because for some file types, the editor is not VS but it will still bring up notepad. This is consistent with all other TFS related operations in VS. with changesets, you can view files in VS or other editor, when you look at any non-modal dialog (history for a single file for example)
So unfortunately without hacking around there's no way to change this behavior.

Resources