Martin Tournoij Basing on answer of Martin Tournoij I'v written next and it working well : del a. Dylan Dylan 39 3 3 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta.
Improve this question. Rhubbarb Rhubbarb 3, 5 5 gold badges 33 33 silver badges 40 40 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Dave Webb Dave Webb k 56 56 gold badges silver badges bronze badges. I'd like to add that this solution only works if the two files are in the same folder.
That can be resolved if one of the files is copied to the other's folder beforehand. In my case, that worked fine. I really don't understand this line. PeteMagsig Seems to work fine if the files aren't in the same folder, but you have to specify the full path to each, and all but the actual name gets stripped so you may have to do some comparison magic to figure out which is which from the results. Show 1 more comment. Dave Webb's soution while a great one will of course only work on files in the same directory.
Here is a solution that will work on any two files. Community Bot 1 1 1 silver badge. There is one issue I found with this today. This will think PM is newer than PM since 12 is greater than 1. Just take note to preserve file modified time when copying. I just experimented with forfiles on the command line a bit.
It can accept quoted filenames, and you can specify paths with spaces in them. I believe you almost have a complete working solution here : — Merlyn Morgan-Graham. Then you can get use that integer value any way you want.
GetFile strFile2 If objFile1. You're right about DOS. For personal scripting, I use Bash in Cygwin. When writing small utilities to be used by the team, I need to use a language available to all. Python is quite widespread here. It also has the cross-platform advantage. But, Python is a "scripting language" rather than a "shell language", and so spawning sub-processes requires more work.
Your suggestion of VBScript is a good one; perhaps I should start to get to know that. Files are too different. Try changing the numbers or editing the files yourself and play with the file compare tool to see what results you get. As you can see from the image above, FC reports that no differences were encountered. If you were to edit one file, add a single letter, and try the command again, your results would show up as in the image below.
Scenario 4 — Perform a binary comparison of two different files and two identical files. You will notice that the function begins by informing you that the two files are being compared.
Next, a bunch of binary digits scroll by, which is where the files are being compared, side by side, and lastly, you receive a report that says that, FCexercise is longer than FCsample. In this comparison of two identical files, FC reports that there is no difference between the two files. Now that you know the basics of the FC tool, feel free to play with the switches and test out some new ideas. Remember that while you are playing with files, it is best to use dummy samples like the ones provided here, in order to avoid any accidental data loss.
Image Credit: Nikki on Flickr. Use Google Fonts in Word. Use FaceTime on Android Signal vs. Customize the Taskbar in Windows What Is svchost. Best Smartwatches. Best Gaming Laptops. Best Smart Displays. Best Home Security Systems. Best External Solid State Drives. Download Article Explore this Article Steps. Related Articles. This opens the File Explorer. Drag the window to the right. To do this, click and hold the menu bar at the top of the window, then drag it to the right.
The window now occupies the right half of the screen. This opens another File Explorer window. Drag the window to the left. Click and hold the menu bar at the top of the window, then drag it over to the left side of the screen. You should see the contents of one folder on the left, and the other folder on the right. Depending on the size of your monitor and screen resolution, you may have to reposition the windows a bit to get all information to display at once.
Click the View tab on both windows. It's near the top of each window. Click Details on both windows. This displays more information about each file and subfolder, including the type of file e.
0コメント