windows – How to automatically copy files from Folder to Folder/subfolder by matching the name

So the structure looks something like this: Folder/Folder1/file1.txt, Folder/Folder1/file2.txt; Folder/Folder2/file1.txt, Folder/Folder2/file2.txt and so on. I used windows explorer search to copy all .txt files in Folder (because i needed them there to edit them) so now i have all .txt files in Folder, around 1600 .txt files. Now i want to move them from Folder back to their subfolders.

Here is what i tried: RoboCopy "C:Usersda_maDesktopprtarget" "C:Usersda_maDesktopresources" /E /MON:1 but is moving the all the files in the folder resources and i need them to be moved in subfolders from the folder resources automatically by the name of the files. (Or if you know a better criteria i’m open to suggestions)

sharepoint online – Manage folder permissions so site members cannot rename folder but allow them to upload files under folder

Could you not create a new permission level called “Upload Only”, and give only the “Add Items” list permission? (This will automatically also select “View Items” in the item permissions and “View Pages” and “Open” in the Site Permissions.)

Then you could break permission inheritance on your “shared” folder, and change the permission level that site members have on that folder from Edit or Contribute or whatever it is to your new “Upload Only” permission level.

applications – When update the app from Play Store are external files deleted?

My question is pretty simple.

I developed a game, uploaded it on the store. In order to keep player level record and UI prefs it writes an ini file.

When the next update is up on the store and the users will update will they lose their progress? Will the file be deleted?

Thanks

web development – detect updated files on server

I am looking for a way to be notified when a file changes on a hosted server. Somehow someone is accessing a client’s website and replacing one of the files. Instead of manually going to the site every day to check it, while testing potential security holes, is there a tool to notify me of a file change?

How to manage javascript files?

I’m using JQuery in my website, I have several views and each view has an ajax call to retrieve user info, products, and other stuff. What is the best or the more efficient way to manage javascripts files.

I currently check the url to decide what javascript file I must call, but I don’t feel that this is a good practice.

Also I think to use only one javascript file and use an id in the body to identify what is the actual view and load a function like this.

if ( $( "#home" ).length ) {

    $.ajax({
  })

}else if($( "#profile" ).length ){
     $.ajax({
     })
}
....

But I feel that the code is beign very hard to read.

There are another way to load javascript in specific views?

rom flashing – When installing new ROM through fastboot, which .img files must be flashed, with what arguments, and in what order?

I own a Oneplus 7T, which runs Android 10 and therefore has no working TWRP to flash ROMs with. It’s bootloader is unlocked and is rooted.

When installing a new ROM, whether it is a custom ROM or an update to the current ROM, I install them by extracting the ROM zip, extracting payload.bin, and flashing certain .img files in fastboot, following the instructions found here under the ‘Manual Flash’ section.

However, I’d like to understand more about this process. The instructions flash less .img files than were extracted. For example, in the recent Oneplus 7T OOS 10.0.11 update, the the number of .img files extracted (31) is less than what was flashed according to the instructions (19). Furthermore, the instructions passed the arguments --disable-verity when flashing two of the .imgs, but not the others.

Therefore, I’m wondering:

  1. What does each .img file do?
  2. Which files must be flashed and in what order?
  3. Why are certain files flashed with certain arguments?

Unkown files and folder are coming on root inside the folder [closed]

I have strange issue automatically folder creating on root level like this https:// here is domain.com/ledger/ and this ledger folder dont know how it came and some of files name like this 60ltf4re.php

c++ – Bitmap BMP Reading Question: I need to read (large) 8MB 32BPP BMP Files into Memory so they may be queued for game play

class Surface
{
protected:
Surface();
virtual ~Surface();

class IMAGE // create a discreet type to be used to instantiate queue template
{
public:
    // single bitmap image width and height
    unsigned short width, height;
    unsigned int size;      // single bitmap image size
    DWORD* buffer;          // buffer to hold a width X height _size_ image

class Bitmap : protected Surface
{
public:
class BMP_32
{
public:
BMPHeader HeaderSection;
BMPInfo InfoSection;
BMPColorTable ColorTableSection;

void Bitmap::BMP_32::Read(Bitmap::BMP_32& a_bmp32, IMAGE& an_image, SURFACE& a_surface, const char* file_name)
{

fread(&a_bmp32.HeaderSection.FileType, sizeof(a_bmp32.HeaderSection.FileType), 1, fp);

fread(&a_bmp32.InfoSection.HeaderSize, sizeof(a_bmp32.InfoSection.HeaderSize), 1, fp);

fread(&a_bmp32.ColorTableSection.RedIntensity, sizeof(a_bmp32.ColorTableSection.RedIntensity), 1, fp);

an_image.buffer = new DWORD(IMAGEBUFFERSIZE);


// The following three examples render the same output visually:

// DWORD dwords_read = fread(an_image.buffer, sizeof(DWORD), an_image.size, fp); // dwords_read = 2,073,600

DWORD dwords_read = fread(an_image.buffer, (SCREEN_WIDTH * SCREEN_HEIGHT), 4, fp); // dwords_read = 4
// DWORD dwords_read = fread(an_image.buffer, ((SCREEN_WIDTH * SCREEN_HEIGHT) * 2), 2, fp); // dwords_read = 2

Background Detail: I am building up a class framework to read in 32BPP BMP files, that I am creating on a backsurface, which I then bltfast to the frontsurface and flip to GDI. The 32BPP background BMP that I am reading in is 8294400 in size, but the most I am able to read using “fread()” is 2073600, which is exactly 25% of the original artwork. I am using Visual Studio 2019 Community Edition and fread(&MyBuffer, arg2, arg3, stream) extensively. My application is an MFC application.

I have a need to read in the entire BMP Pixel Data Section into memory, because I am saving this into a queue Abstract Data type. Once I have the BMP in memory the I/O is done to disk and I just make calls to update the backsurface, bltfast and flip to update my scene. I am creating a class library for the BMP code.

Question: Is fread() hitting an upperbound on size limit? If so can someone suggest how I might be able to overcome this problem. If so I am hoping to make a minor substitution for this fread() API call for another C++ call. I cannot do anything too fancy with multiple buffers or doing a lot of I/O, as I have tried that approach already without success.

c# – How can I use Task Async Await to read files content from multiple directories recursive?

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            ProcessRead().Wait();
        }

        static async Task ProcessRead()
        {
            await Task.Run(() =>
            {
                IEnumerable<string> fileEntries = Directory.EnumerateFiles(@"Directory");
                int count = 0;
                foreach (string fname in fileEntries)
                {
                    try
                    {
                        count++;
                        string text = File.ReadAllText(fname);
                        Console.WriteLine(text);
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex.Message);
                    }
                }

                Console.WriteLine(count);
            });
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}

This is working but only for the given directory in EnumerateFiles.
but I want to get all the files in all directories recursive.

For example if I put the directory of windows :

IEnumerable<string> fileEntries = Directory.EnumerateFiles(@"c:windows");

I want it to read the content of all the files in the directory windows and also all the sub directories in windows. So it will read all the files content in the given root directory and all it’s sub directories recursive.

troubleshooting – Dynamic page numbers are converted to static page numbers when exchanging files (Word 365 to Word 2019)

Here is what’s happening:

  • Joe uses Word 365 to create a file with dynamic page numbers and emails it to me.
  • I open the file with Word Pro Plus 2019.
    All page numbers have been converted to the static number 2.

Notes

  • There are NO section breaks in the file.
  • I recently upgraded to Word 2019 from Word 2010.
  • This was never a problem when I was using Word 2010. I.e., I could work with 2016, 2019, and 365 files without problems.

I tried searching online for a solution, but the hits are for “how to convert,” even when I add keywords such as problem and troubleshoot.

Help?