Windows 10: How to find out the list of commands for a .bat or .exe file?

Discus and support How to find out the list of commands for a .bat or .exe file? in Windows 10 Customization to solve the problem; hard to describe what im looking for i'll do my best to explain in details. example, an image software I use photo.exe when installed it automatically... Discussion in 'Windows 10 Customization' started by m18xr2, Aug 19, 2019.

  1. m18xr2 Win User

    How to find out the list of commands for a .bat or .exe file?


    hard to describe what im looking for i'll do my best to explain in details.

    example, an image software I use photo.exe when installed it automatically set up shell in registry for windows context menu for files type .bmp/.jpg etc etc.

    when viewed in registry/shell it show something like these:

    1. "C:\photos\photos.exe" /e "%1" - for opening .bmp/jpg
    2. "C:\photos\photos.exe" /p "%1" - for printing photos
    3. "C:\photos\photos.exe" /v "%1" - another view mode

    the commands /e /p /v etc is what I am looking for. I know the program has more of these because it has other functions within the program itself such as converting picture format, reduce in size, rotation etc.

    I tried few guesses such as /c /cn for something I thought maybe conversion but no luck

    is there a way to figure out what sort of command line it has available for a particular program?

    :)
     
    m18xr2, Aug 19, 2019
    #1

  2. need help creating a file/folder listing *.bat file


    Hope I understand the question properly. If you simply want a raw listing of all *.bat files in a folder, just run this command:

    Code:
    Code:
    "dir *.bat /b"
    The "/b" gives a bare listing with nothing but the file names. You can redirect that output to a file like this:

    Code:
    Code:
    dir *.bat /b > D:\OutputFile.txt
    If you want a directory listing a specific folder, do it like this:

    Code:
    Code:
    dir D:\MyFolder\*.bat /b > D:\OutputFile.txt
    Finally, add a "/s" if you want to recurse subdirectories.

    Naturally, you can put that into a batch file if you wish.

    Did I understand the question correctly? If you need anything more, feel free to let me know.
     
    hsehestedt, Aug 19, 2019
    #2
  3. dark2099 Win User
    Generating a .txt based file list in Windows 7

    I want to be able to generate a .txt file that lists all the files and folders in a specific folder on my PC, but don't know the name of any programs that do that. Searched on google a bit and came up with this guide, but it's for XP and I can't seem to find some of the folder options to modify the .bat file. Any suggestions? Thanks

    http://www.theeldergeek.com/file_list_generator.htm

    EDIT: The .bat file will do what I want if it is in the folder I want to do it in, but the option I want to add is having the right click option that it shows.
     
    dark2099, Aug 19, 2019
    #3
  4. regan1985 Win User

    How to find out the list of commands for a .bat or .exe file?

    making file lists

    the command f did get some files but not all of them? any idea why?

    i used the command h:/tree /f films

    and it gave me a a list of files from M to Z
     
    regan1985, Aug 19, 2019
    #4
Thema:

How to find out the list of commands for a .bat or .exe file?

Loading...
  1. How to find out the list of commands for a .bat or .exe file? - Similar Threads - find list commands

  2. How to find the "open with" option for .bat files

    in Windows 10 Gaming
    How to find the "open with" option for .bat files: Hi, I don't find the "open with" for .bat files option in the context menu.In the default apps I didn't find the .bat file change option.I want the file to open in Anaconda prompt and not in Windows terminal when I double click on it.Thank you for your help...
  3. How to find the "open with" option for .bat files

    in Windows 10 Software and Apps
    How to find the "open with" option for .bat files: Hi, I don't find the "open with" for .bat files option in the context menu.In the default apps I didn't find the .bat file change option.I want the file to open in Anaconda prompt and not in Windows terminal when I double click on it.Thank you for your help...
  4. how do i make an exe file out of a command prompt command

    in Windows 10 Ask Insider
    how do i make an exe file out of a command prompt command: hi, i am curious of how to make an exe file run a command into command prompt. Can someone help me? submitted by /u/Ethanol2814 [link] [comments] https://www.reddit.com/r/Windows10/comments/lql0i3/how_do_i_make_an_exe_file_out_of_a_command_prompt/
  5. Files Detected as Malware after comiling with bat-to-exe compilers

    in AntiVirus, Firewalls and System Security
    Files Detected as Malware after comiling with bat-to-exe compilers: hi, i made batch files, i used many types of BATCH-to-exe compiler. but after compiling them, Windows Defender detects them as Threats/Malwares/Trojans . is it problem with the app or is it false positive?...
  6. exe files will not run unless .exe extension is included in command

    in Windows 10 Software and Apps
    exe files will not run unless .exe extension is included in command: cannot run an exe file in CMD administrator I posted about it a long time ago, but I've never been able to run anything without an .exe. . . . *Huh [img] Power Shell works just fine with out an .exe, though. . . ? . 172679
  7. Convert Bat to exe?

    in Windows 10 Software and Apps
    Convert Bat to exe?: Is there a way to convert a batch file to exe but it is not detected as a trojan? Bat zu exe konvertieren?
  8. need help creating a file/folder listing *.bat file

    in Windows 10 Support
    need help creating a file/folder listing *.bat file: pretty much as the subject states, l had one in the past but l cant remember where l put it and forget how it was written. basically l just want a script that lists files and folders in a specific directory without listing the sub folders within that dir (just a bog standard...
  9. Create exe files from bat files using native windows commands

    in Windows 10 Software and Apps
    Create exe files from bat files using native windows commands: Came across this hidden Windows gem I have never seen about converting bat to exe files. I know there are 3rd party apps but was unaware you could do it from Windows iExpress: Convert BAT-files into EXE-files [How-To] | Maintenance and System Tools | Windows Tools, Help...
  10. Bat or Exe file to restart Computer Browser Service

    in Windows 10 Support
    Bat or Exe file to restart Computer Browser Service: About 1 out of every 6 times I turn my laptop on I have to restart the computer browser service to be able to connect to networks. Is there a bat or exe file I can create that I can just click on and run to restart the service instead of having to go into the...