Windows 10: how do i make a .bat open a file using another file (as you would do if you dragged 1 thing...

Discus and support how do i make a .bat open a file using another file (as you would do if you dragged 1 thing... in Windows 10 Ask Insider to solve the problem; so i have an old laptop that cant do many things well, but it can run emulators for old systems like the gba (which the best gaming console of all time... Discussion in 'Windows 10 Ask Insider' started by /u/OnlySubject0, Jun 1, 2020.

  1. how do i make a .bat open a file using another file (as you would do if you dragged 1 thing...


    so i have an old laptop that cant do many things well, but it can run emulators for old systems like the gba (which the best gaming console of all time no debate), NES, SNES, genesis, and some other stuff. im planning on only using the computer for emulation (and also ocasional hentai) and it would just be easier if i could double click on a .bat or something on my desktop and it could just open like poof computer magic. thanks!

    submitted by /u/OnlySubject0
    [link] [comments]

    :)
     
    /u/OnlySubject0, Jun 1, 2020
    #1

  2. BAT file/Script to find and replace files

    Hey all....

    Can someone help me make the BAT script in the 2nd post above to be able to use MORE than "1" file?
    As it currently is, you can only replace one particular file.

    For example, I want in the command line to be able to write two files or more, and the script will find and replace all those 2 or more named files.
    Thanks much.

    P.S.... Is there a GUI that does file searching and replacing?
    I've spent hours searching on the net, and the only thing I can find are "text" search/replace and this BAT command, not actual "file" replacing. I find this amazing. *Frown how do i make a .bat open a file using another file (as you would do if you dragged 1 thing... :(
     
    leeuniverse, Jun 1, 2020
    #2
  3. Ketxxx Win User
    opening .dds files with gimp

    Simply, HOW? I got the DDS plugin but the POS wont open DDS files still. Can someone give me a step-by-step rundown of how to install the DDS plugin for gimp so I know if I'm missing something?
     
    Ketxxx, Jun 1, 2020
    #3
  4. how do i make a .bat open a file using another file (as you would do if you dragged 1 thing...

    BAT file/Script to find and replace files

    This should do it, though it's probably not the cleanest method. Tests alright on my computer.
    Code: for /F "tokens=*" %P in ('dir /b /s myfile.txt') do copy /Y .\myfile.txt "%P"[/quote] If you're running it from a bat file use %%P instead of %P.

    EDIT: I corrected the command to work with file paths that have spaces (notice the quotes around the last parameter). Also when running the command you'll always get this error:
    Code: The file cannot be copied onto itself.[/quote] Just ignore that, because it doesn't hurt anything.

    Here's a batch file version that I called subupdate.bat:
    Code: @Echo off if "%1"=="" GOTO End for /F "tokens=*" %%P in ('dir /b /s %1') do copy /Y .\%1 "%%P" :End[/quote] Then you can invoke it as such:
    Code: C:\root_dir_for_changes\subupdate.bat my_file_to_update.txt The file cannot be copied onto itself. 0 file(s) copied. 1 file(s) copied. 1 file(s) copied. 1 file(s) copied.[/quote]
     
    streetfighter 2, Jun 1, 2020
    #4
Thema:

how do i make a .bat open a file using another file (as you would do if you dragged 1 thing...

Loading...
  1. how do i make a .bat open a file using another file (as you would do if you dragged 1 thing... - Similar Threads - bat open file

  2. How do you open the search file????

    in Windows 10 Software and Apps
    How do you open the search file????: https://www.tenforums.com/general-support/60109-how-change-default-folder-view-search-results.html#:~:text=I%20haven%27t%20played,not%20that%20badI do not understand what this person is talking about. I see two seach folders under my user folder: Everywhere ; Indexed...
  3. how do you want to open this file?

    in Windows 10 Ask Insider
    how do you want to open this file?: every day at 8:00 PM i get a pop up how do you want to open this file? its very annoying how do i get it to stop showing up every day submitted by /u/JamesLPYT [link] [comments] https://www.reddit.com/r/Windows10/comments/v5q11h/how_do_you_want_to_open_this_file/
  4. How do you want to open this file

    in Windows 10 Installation and Upgrade
    How do you want to open this file: Hello all, Earlier I installed WPS and then I uninstalled it later. But some of it's files are still in the PC which is very annoying. For better reference to the problem I am attaching the screenshot. [ATTACH]...
  5. How would you like to open this file?

    in Windows 10 Network and Sharing
    How would you like to open this file?: Hi, So I don't know what's been happening but every time I start up my laptop it always asks me How would you like to open this file? This also happens for other things such as trying to open appdata. I don't know how to get rid of this someone please help....
  6. How do you want to open this file?

    in Windows 10 Support
    How do you want to open this file?: Hi guys, I'm getting rather annoyed at this but hopefully somebody will be able to explain how to solve it.... When I try and open an "image file" (jpeg, png etc) i get the classic pop up "how do you want to open this file" I Cannot go past this point. I have selected...
  7. How do you want to open this file?

    in Windows 10 Customization
    How do you want to open this file?: Every time after booting my desktop, this "How do you want to open this file?" message appears. I have no clue, what kind of file this message talking about. Help me out.[IMG]...
  8. How do you want to open this file

    in Windows 10 Software and Apps
    How do you want to open this file: when i try to open .cfg file it asks me every time "How do you want to open this file", i set notepad and it don't save this app as the application in which it must to open. And whey i again try to open this .cfg file windows again asks me "How do you want to open this...
  9. "How do you want to open this file?"

    in Windows 10 Software and Apps
    "How do you want to open this file?": This pops up on my computer randomly, but generally every 5 to 10 minutes. It disappears on mouse click, but is annoying. Especially if in the middle of some work. See the attached screen shot. I have read through many posts regarding a variation of this popup that includes...
  10. How do you want to open this file ?

    in Microsoft Office and 365
    How do you want to open this file ?: When ever I try to download a program and I was an exe. file I never just get a run button so I can simply install the program but a box pops up saying "how do you want to open this file? " with the options of: Internet Explorer Notepad Office XML Handler Paint Windows...