Does this script work even if the files were located in a directory on a network drive?
Thanks
Bye
Search found 136 matches
- 20 Jan 2021 03:31
- Forum: DOS Batch Forum
- Topic: HASHSUM.BAT v1.8 - emulate md5sum, shasum, and the like
- Replies: 61
- Views: 112726
- 18 Jan 2021 02:04
- Forum: DOS Batch Forum
- Topic: HASHSUM.BAT v1.8 - emulate md5sum, shasum, and the like
- Replies: 61
- Views: 112726
Re: HASHSUM.BAT v1.6 - emulate md5sum, shasum, and the like
Squashman wrote: ↑17 Jan 2021 23:04I am going to take a wild guess and say download the code that andresp posted
Now, I test it.
Thanks
Bye
- 17 Jan 2021 09:50
- Forum: DOS Batch Forum
- Topic: HASHSUM.BAT v1.8 - emulate md5sum, shasum, and the like
- Replies: 61
- Views: 112726
Re: HASHSUM.BAT v1.6 - emulate md5sum, shasum, and the like
The very first post of this thread always has the most recent version (currently v1.6). That version should work as long as all characters in filenames are supported by your active code page. I did not incorporate andresp's suggested changes to support all unicode charcters in file names As for the...
- 17 Jan 2021 02:15
- Forum: DOS Batch Forum
- Topic: HASHSUM.BAT v1.8 - emulate md5sum, shasum, and the like
- Replies: 61
- Views: 112726
Re: HASHSUM.BAT v1.6 - emulate md5sum, shasum, and the like
What is the latest complete and working version of this script?
How do I choose which type of hash to produce?
From the command line, what is its syntax?
Thanks
Bye
How do I choose which type of hash to produce?
From the command line, what is its syntax?
Thanks
Bye
- 16 Jan 2021 12:11
- Forum: DOS Batch Forum
- Topic: Windows 10 20H2 and hash file
- Replies: 3
- Views: 4717
Windows 10 20H2 and hash file
Hi
Using Windows 10 20H2, how can I create a script that, starting from a local or network directory, parses all its subdirectories creating a text file containing all the file names with the corresponding SHA1 hashes next to them?
Thanks
Bye
Using Windows 10 20H2, how can I create a script that, starting from a local or network directory, parses all its subdirectories creating a text file containing all the file names with the corresponding SHA1 hashes next to them?
Thanks
Bye
- 09 Jul 2017 03:16
- Forum: DOS Batch Forum
- Topic: Mapping the shared folders
- Replies: 3
- Views: 3912
Mapping the shared folders
Hi
In Windows PE/RE of Windows 10 v1704 (DOS command prompt), what is the procedure to find the shared folders on the network and how do I map them?
Thanks
Bye
In Windows PE/RE of Windows 10 v1704 (DOS command prompt), what is the procedure to find the shared folders on the network and how do I map them?
Thanks
Bye
- 21 Jun 2017 11:09
- Forum: DOS Batch Forum
- Topic: Search for files that contain the $ symbol
- Replies: 23
- Views: 19415
Re: Search for files that contain the $ symbol
I assume you are calling the script using the parameter: script.bat $Windows.~BT So don't use doublequotes around $Windows.~BT (or use %~1 within the script instead of %1) (If running from inside another batch you should add a call in front.) If you execute for commands from command line, then you ...
- 20 Jun 2017 04:09
- Forum: DOS Batch Forum
- Topic: Search for files that contain the $ symbol
- Replies: 23
- Views: 19415
Re: Search for files that contain the $ symbol
It doesn't search for files - it seemed, that you didn't search for files: I also mentioned it, and you didn't contradict. If you also need files just remove anything in round brackets and replace it with "echo(%%~fa". But this code should definitely find hidden directories; maybe the com...
- 19 Jun 2017 10:53
- Forum: DOS Batch Forum
- Topic: Search for files that contain the $ symbol
- Replies: 23
- Views: 19415
Re: Search for files that contain the $ symbol
Oh, ... sorry for that, i haven't those files, so i created som,e in a test directory "C:\test". You should just change this string to "C:\", i have corrected the above code. penpen @echo off setlocal enableExtensions disableDelayedExpansion for /R "C:\" %%a in ($Windo...
- 19 Jun 2017 09:14
- Forum: DOS Batch Forum
- Topic: Search for files that contain the $ symbol
- Replies: 23
- Views: 19415
Re: Search for files that contain the $ symbol
It shouldn't looks for the specified string in each file! Could it be that you mean "it looks for the specified string in each filename"? That would be correct. Yes The "for /R" loop is searching for files and directories. The only way to let it search for directories only is to...
- 19 Jun 2017 01:42
- Forum: DOS Batch Forum
- Topic: Search for files that contain the $ symbol
- Replies: 23
- Views: 19415
Re: Search for files that contain the $ symbol
There is something that does not work because your script analyzes the files content and not their names. Why? Have you tested it, or do you assume that the script analyzes the files content? Note that the above is a "for /R" loop and no "for /F" loop. penpen I tested the comman...
- 18 Jun 2017 11:16
- Forum: DOS Batch Forum
- Topic: Search for files that contain the $ symbol
- Replies: 23
- Views: 19415
Re: Search for files that contain the $ symbol
This should help you: @echo off for /R "C:\" %%a in (.) do if "%%~nxa" == "$Windows.~BT" echo(%%~fa goto :eof Note: You cannot optimze this by using "... %%a in ("$Windows.~BT") ..." or similar, because then you would also list files instead of dire...
- 18 Jun 2017 01:19
- Forum: DOS Batch Forum
- Topic: Search for files that contain the $ symbol
- Replies: 23
- Views: 19415
Re: Search for files that contain the $ symbol
I'm not familiar with PE, but they should base on xp or later, so you probably only have to search for the right windows version and copy "findstr.exe" to the PE image. If you have no success with that, then please try if the "for /R" loop works on your PE. penpen How do I do th...
- 17 Jun 2017 10:47
- Forum: DOS Batch Forum
- Topic: Search for files that contain the $ symbol
- Replies: 23
- Views: 19415
Re: Search for files that contain the $ symbol
I'm not fully sure, but i think balubeto doesn't search for files in the typical sense (although he mentioned "files"), because he wrote: dir "C:\?Windows.~BT" /A:DH /B /S, it finds the files. This command searches for directories only. Directories are also file objects, so his ...
- 16 Jun 2017 09:49
- Forum: DOS Batch Forum
- Topic: Search for files that contain the $ symbol
- Replies: 23
- Views: 19415
Re: Search for files that contain the $ symbol
Compo wrote:My expectation is that you answer my question; until then any further questions will be ignored.
Thanks
Bye
In other words, I should scan a hard disk to find all the $Windows.~BT hidden directories and display them with their path. So, how should I create this list on the screen?
Thanks
Bye