topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday November 11, 2025, 7:29 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 31 32 33 34 35 [36] 37 38 39 40 41 ... 225next
876
>I saw it flash something in red but have not rerun

You're just double-clicking on the file aren't you?

UPDATE  The error says:   add-NTFSAccess : The 'Add-NTFSAccess' command was found in the module 'NTFSSecurity', but the module could not be loaded.   So i am working on that one
>  Says something about the file not being digitally signed ;(  Also get further and just more messages telling me that for some reason the NTFSSecurity module is not going to run on this system ;((

You'll need to create a shortcut and add options to bypass Policy Control, set the following as Target, (change path to file to suit), and set the Run as admin option.

powershell.exe -executionpolicy bypass -File "<full path>\Set2Rights.ps1"

Or if running from a CLI/PoSh, (as Admin):

powershell.exe -executionpolicy bypass -File "<full path>\Set2Rights.ps1"

NOTE: Have updated the original post/script, now tested (had a couple of typos) also added info on how to Trust the PowerShell Gallery repository, (any modules from there will inherit the trust), and added the above execution info.
877
Coding Snacks / Re: Update Timestamp of file based on time in filename
« Last post by 4wd on April 03, 2018, 02:15 AM »
FilenameXYZ Bla-bla 12022011 130254.txt
FilenameXYZ Bla-bla 20141115_020218.txt
PatchToFiles-Video_2018-04-04_091419.wmv
Another F'n crappy name-2011_02_01-184901.sfa
Some-Other-Stupid-Filename .... 1999..12%&()23 ..!_- 231402.fck
Yet Another Example of Poor Standardised Naming-2001+08+03---15;34;34.dcm
Example of Poor Naming 32 - 03+03+2013---23;42;00.dcm


TfN.ps1

Code: PowerShell [Select]
  1. Param (
  2.   [string]$file,
  3.   [int32]$type = 2
  4. )
  5. # Types: 0 = Creation Time
  6. #        1 = Last Access Time
  7. #        2 = Modified Time
  8. #        3 = All of them
  9.  
  10. $fileObject = Get-ChildItem -Path $file
  11. $wanted = (($fileObject.BaseName | %{ -join $_[$_.Length..0] }) -Replace '(\D)', '').Substring(0,14)  | %{ -join $_[$_.Length..0] }
  12. $pattern = 'yyyyMMddHHmmss'
  13. If ($wanted.Substring(4, 2) -gt "12") { $pattern = 'ddMMyyyyHHmmss' }
  14. $date = [DateTime]::ParseExact($wanted, $pattern, $null)
  15. Switch ($type) {
  16.   "0" {$fileObject.CreationTime = $date; break}
  17.   "1" {$fileObject.LastAccessTime = $date; break}
  18.   "2" {$fileObject.LastWriteTime = $date; break}
  19.   default {
  20.     $fileObject.CreationTime = $date
  21.     $fileObject.LastAccessTime = $date
  22.     $fileObject.LastWriteTime = $date
  23.   }
  24. }

TfN.ps1 <file> <type>

type = Read script

Example:
.\TfN.ps1 "ProgFileW10PShellModules.snippets-06-20141230 123720.txt" 0

2018-04-03 16_42_44-K__.png

2018-04-03 17_12_25-K__.png

TfN.cmd <dir> <type>
Code: Text [Select]
  1. pushd %1
  2. for /f "usebackq tokens=* delims=" %%a in (`dir "%~1" /b /a-d-h-r`) do (
  3.       powershell.exe -ExecutionPolicy Bypass -File C:\PoSh\TfN.ps1 "%%~a" %2
  4.       )
  5. popd

2018-04-05 14_22_32-C__WINDOWS_system32_cmd.exe.png

2018-04-05 14_22_58-K__.png
878
Open a PowerShell console with Admin rights.

Install the PowerShell NTFS Security module from the PowerShell Gallery as per here.

EDIT: If you want to mark the PowerShell Gallery as a Trusted repository, (it's run by Microsoft), open a PoSh console as Admin and enter the following:

Code: PowerShell [Select]
  1. Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

PoSh will no longer complain about modules installed from it being non-signed.

Set2Rights.ps1
Code: PowerShell [Select]
  1. $source = 'C:\Employees'
  2. get-childitem -Path $source -Directory -Name | % { Add-NTFSAccess -Path "$source\$_" -Account "$env:computername\$_" -AccessRights FullControl }

If you don't want them to have full control of their directory, change FullControl to any of the following, multiple terms to be comma separated:

AppendData, ChangePermissions, CreateDirectories, CreateFiles, Delete, DeleteSubdirectoriesAndFiles, ExecuteFile, FullControl, GenericAll, GenericExecute, GenericRead, GenericWrite, ListDirectory, Modify, None, Read, ReadAndExecute, ReadAttributes, ReadData, ReadExtendedAttributes, ReadPermissions, Synchronize, TakeOwnership, Traverse, Write, WriteAttributes, WriteExtendedAttributes

NOTE: OK, I got un-lazy and tested it, couple of typos but it worked.

You'll need to create a shortcut and add options to bypass Policy Control, set the following as Target, (change path to file to suit), and set the Run as admin option, (under Advanced).

powershell.exe -executionpolicy bypass -File "<full path>\Set2Rights.ps1"

Or if running from a CLI/PoSh, (as Admin):

powershell.exe -executionpolicy bypass -File "<full path>\Set2Rights.ps1"
879
Living Room / Re: Any native english speakers?
« Last post by 4wd on April 02, 2018, 05:40 PM »
It's a lack of reasoning game, based on interpreting the questions in the best way for you!  ;D

Then "I and II only" is also correct, (dependant on a better image).

I could probably come up with some esoteric branch of mathematics that also proved that III was correct.
880
tl;dr;
You really should get the cause fixed, not clean up the mess afterward.

That's not the way the world works.
881
Living Room / Re: Any native english speakers?
« Last post by 4wd on April 02, 2018, 09:44 AM »
You guys have read too little science fiction!

Spoiler
"The intelligent man is never bored"
Isaac Asimov

-cranioscopical (April 02, 2018, 09:02 AM)

Because it was intriguing? >.>

Nope, I was bored.
882
Living Room / Re: Any native english speakers?
« Last post by 4wd on April 01, 2018, 11:11 PM »
Actually, given the shitty font/typesetting, choice #1 could be correct if interpreted as:

2⁹ = 8³

Both are 512.

As written/typeset, however, it is incorrect ... if it was me I would be stating:

  • I only - Is the correct answer provided that there has been an error in the selection of font or typesetting.

Otherwise, as wraith said, all the given answers are false.

ADDENDUM: Guess what, if the second statement is indeed a * rather than a .

3⁵ = 3 x 81

My considered opinion is to return the question to whoever wrote it and ask that they reformat the question in English as there's no correct answer given the poor formatting of the question.
883
Living Room / Re: Any native english speakers?
« Last post by 4wd on April 01, 2018, 10:37 PM »
Is that second  one 35=3 * 81?  If I'm reading correctly (hard to see because of the size of the image), none of them are true.

Pretty sure it's: 35 = 3.81

... not that it would make a difference ...

Logically that would make the first two choices false which leaves only interpretation of the third choice:

  • √6 x 3 = ⁶√6
  • √6 x 3 = 6 x √6
  • (√6)³ = ⁶√6
  • (√6)³ = 6 x √6

Pick one.

To extend logic a little further in the case of the third choice, you have the following possible outcomes given the four interpretations above:
  • One (or more) is true
  • None are true

While there are answers that permit for the third choice to be either true or false, given that the first two choices are false there are no answers that provide for:
  • Only the third choice to be true
  • All the choices to be false

My analysis is based upon a fully caffeinated brain cell.

Why are we doing somebodies homework?  :huh:
-Stephen66515 (April 01, 2018, 09:38 PM)

Because we're bored.
884
General Software Discussion / Re: IDEA: Need an .MPCPL file editor
« Last post by 4wd on April 01, 2018, 10:23 PM »
Given the rather formalised format of the MPCPL file, would it not be possible to import it into Excel, (or some other spreadsheet program), to work on it there?

Just wondering since it's kind of a multi-line CSV format, might even be easy to write a small converter program/script, (seems like it should be easy in PowerShell) to convert the MPCPL to a standard CSV and vice versa when finished manipulating it within the spreadsheet.

Would allow you to use all the pattern matching, multi-column sorting, Find/Replace, etc functions already available.
885
General Software Discussion / Re: IDEA: Need an .MPCPL file editor
« Last post by 4wd on April 01, 2018, 07:49 PM »
... did you want me to continue working on the application I mentioned above?

My vote is if you're happy to continue, go for it ... one more tool in the toolbox and all that  ;)
Maybe even an export as a Extended M3U with #EXTINF for those files with Label in the MPCPL file, (would necessitate determining the file duration in seconds though which might slow things down).

Only wanted to suggest an alternative methodology that I think would be simpler/easier to maintain in the long run.

FWIW, there is a playlist editor on SourceForge, (in Java), but I couldn't get it to run.
886
General Software Discussion / Re: IDEA: Need an .MPCPL file editor
« Last post by 4wd on April 01, 2018, 07:52 AM »
So is this #EXTINF line a separate line from the actual Media file line?

Yes

Code: Text [Select]
  1. #EXTM3U
  2. #EXTINF:285,A song
  3. Z:\Misc Music & Videos\Andain - You Once Told Me (Unofficial video).mp3
  4. #EXTINF:220,A video
  5. Z:\Misc Music & Videos\Black Jonas Point - Lo Que Quieras.mp4

Description

Much better though is to use the files metadata then the #EXTINF line isn't required making the M3U just a list of files which is a lot easier to handle.

As for the Subtitle files, they don't always match the filename. But then, with MPC, it first looks in the media file folder to see if there's a valid Subtitle file there, and if not, it looks for one in a SUBS folder, and if it's there, it uses that, no matter what the name. I guess I'll have to go thru all my subtitle files and have a bit of renaming to do!   :P

You can mux the srt into a MP4 video container with a simple ffmpeg command:

Code: Text [Select]
  1. ffmpeg -i example.avi -i example.srt -c copy -c:s mov_text example.mp4

Or if you prefer Matroska files you can use MKVToolnix.

Personally prefer MP4 as it's more widely accepted by devices plus any metadata can be added via the normal Windows Properties dialog or any other metadata editor.

2018-04-01 22_54_05-Ascension - For A Lifetime (Chillout Mix).mp4 Properties.png
887
Finished Programs / Re: In Single Filename Change Spaces To Underscores
« Last post by 4wd on April 01, 2018, 05:43 AM »
Wow, 4wd, no idea what you're doing there.

I didn't do anything except a search and repackage into a stand alone command file.

I would have done it as a short PowerShell script but why re-invent the wheel?
888
Finished Programs / Re: In Single Filename Change Spaces To Underscores
« Last post by 4wd on April 01, 2018, 03:23 AM »
From StackOverflow

s2u.cmd

Code: Text [Select]
  1. cmd /e:on /v:on /c "for %%f in ("%~1") do (set "n=%%~nxf" & set "n=!n: =_!" & ren "%%~ff" "!n!" )"

Usage: s2u.cmd %1

Example: s2u.cmd "t e s t.txt"
Result: t_e_s_t.txt

FYI
889
General Software Discussion / Re: IDEA: Need an .MPCPL file editor
« Last post by 4wd on March 31, 2018, 11:27 PM »
Oh, and with regard to the M3U files, if you try to save a playlist in MPC, it will save in the M3U format, but if any of the Media files in the list had Subtitle files, I'll have lost track of them in the M3U and PLS formats.

Not really a problem as I see it, the subtitle file will have the same name as the media file, thus it will be listed next to it on the directory and MPC will auto-load it if it's the same name so a separate entry in a playlist isn't necessary.

Only time I can see the subtitle file having a different name is if you have multiple subtitle streams for the one media file. But I still don't consider that a problem since I mux all subtitle files into MP4/MKV containers and just select which I want from the subtitle menu, the less unnecessary files in a directory the better.

And also, if I wanted to relabel a media file in the playlist to be more informative, that option is out, too.

I guess but since my media files are named informatively to start with or are grouped within directories due to relevance, that's not a problem I've run into.

BTW, that's also supported under M3U via the #EXTINF: line.

MPC will also use metadata, (ID3), info if available, all my audio files have it, (MP3, OGG, M4A, FLAC, etc) and also can be added to MP4, MKV, OGV, etc video ... it also means that it travels with the media file rather than relying on a text file.

If you are curious, and if you haven't done it yet, pick out an MPCPL file of yours that has a lot of media items in it and open it in Notepad or whatever text editor you like.

I don't use MPCPL, I use M3U because they're universally supported across all my devices: tablets, phones, media players, computers.

I only asked what was wrong with using an M3U playlist as an alternative.
890
General Software Discussion / Re: IDEA: Need an .MPCPL file editor
« Last post by 4wd on March 31, 2018, 10:19 PM »
Just as a matter of interest, what's wrong with a normal M3U file?

MPC, (Black Edition in my case), can save/read that format.

eg.
Code: Text [Select]
  1. #EXTM3U
  2. Z:\Misc Music & Videos\Andain_-Turn_Up_The_Sound_Chillout_Mix_.mp3
  3. Z:\Misc Music & Videos\Ascension - For A Lifetime (Chillout Mix).mp4
  4. Z:\Misc Music & Videos\Aurosonic _ Frainbreeze and Katty Heath - All I Need (Progressive Mix).mp4
  5. Z:\Misc Music & Videos\Black Jonas Point - Lo Que Quieras.ogg
  6. Z:\Misc Music & Videos\Café del Mar (Rastafari Lounge).mp3
  7. Z:\Misc Music & Videos\Jah Khalib - Лейла   Official video.mp4

A lot easier to edit being just a single line.
891
and Kali.

Whoopss, I meant Kali since I've just been downloading the ISOs ... who knows where I got Mint from :huh:
892
There is a Microsoft Store?

Never use it, it's disabled ... although I recently read Mint is on there for install, (after enabling WSL), so maybe I'll give it a try.

Might be able to remove VirtualBox, (only VM I've got these days is Debian 9).
893
Living Room / Re: Looking for smartphone
« Last post by 4wd on March 29, 2018, 07:24 AM »
... a headphone jack

I went from wired to wireless as soon as decent BT4 earphones/headphones became available, don't think I'll ever go back, the wires were a PITA.  I just make sure both devices are using apt-X.
894
Living Room / Re: Looking for smartphone
« Last post by 4wd on March 28, 2018, 08:42 PM »
I think it's the best choice.

Two things:
1. Google is locking down its apps to certified devices, see here.  Make sure whatever you buy is certified by Google otherwise you won't be able to sign into your Google account and thus lose any functionality that depends on it, eg. Calendar, Gmail, etc.  This is especially relevant for phones whose main market is China, (excluding brands like Huawei, Xiaomi, etc who have a significant global presence).
2. I have phones that are years old, Huawei, Samsung, Nokia, Xiaomi, and now Motorola (Lenovo).  They all still work.
I bought a Homtom HT16, (made by the reasonably well known Doogee), it was cheap, it had good specs for the price, and it worked for what I wanted to do.  It has stopped working after 14 months, no longer turns on, no longer charges ... effectively dead.
This is OK because I don't live on my phone, I don't care if people can't contact me on it, they can still send an email or ring my landline.

You use your phone for business so you should be looking at reliability above all else.

The Umidigi S2 Pro apparently only has four 4G bands, (FDD-LTE: 800/1800/2100/2600MHz ... no TDD-LTE) ... this was the first thing you checked, what bands and topology your provider uses, right?

Just as an aside, don't expect any upgrades to the next Android version on an MTK based phone ... be surprised and happy if you do get one but never expect it.
895
Try grabbing the NTLM hashes, (Ophcrack, samdump, mimikatz, etc), and upload to NTLM Decryptor.
896
Living Room / Re: Looking for smartphone
« Last post by 4wd on March 27, 2018, 10:03 PM »
However, based on his original post, he had to access a website to log in so the WiFi network in question is probably an open network (no password on the actual WiFi network) and he's probably going to have to clear the browser cache on his phone.  Or, at the very least, clear that particular password out of his browser's saved passwords.

It could be the WiFi network has cached his MAC address as an allowed device for a set period, not much you can do until it expires.

I am planning to buy Lenovo P2 due to its long battery life, any opinions?

My opinion based on the half dozen or so phones I've gone through:
  • Never get a phone that isn't rootable.
  • Never get a phone that didn't provide Dual SIM and MicroSD storage, (ie. not Hybrid slot).
897
I seem to remember reading that they changed the login mechanism, (when using a password), so that it operates in a secure environment inaccessible to the user thus the normal methods, (Ophcrack, John the Ripper, etc), wouldn't work and that you could really only reset passwords under Windows 10.

Note, this is my understanding/interpretation, quite possibly wrong, based on a half remembered article read over a year ago.

f0dder would definitely know.

In the meantime, this might be what I'm thinking of: Windows 10: Virtualization-based security
898
Mini-Reviews by Members / Re: Mini Review of jAlbum web site creator.
« Last post by 4wd on March 19, 2018, 01:11 AM »
I used it years ago, (5+, when it was free), to create a simple website which I then butchered for the genealogists in the family, needed a site to display a journal transcription.

The last free version is still available here.
899
I was hoping to find a way to use the contexts of the text file to rename the jpg file ...

It's there:

Code: Text [Select]
  1. set /p name=<whose.txt
  2. move /Y photo.jpg %name%.jpg

set reads the contents of the text file into a variable, move renames the file to the variable value with .jpg as the extension.
900
Living Room / Re: Booting Linux from USB thumbdrive - Linux Explorer
« Last post by 4wd on March 17, 2018, 07:25 PM »
Considering the OP wanted to delete the contents, (implying all the contents), I would have thought any one of the partition management programs available and just quick format in EXT3, eg. AOMEI, EASUS, MiniTool, EASSOS, etc.

Free with no time limits.
Pages: prev1 ... 31 32 33 34 35 [36] 37 38 39 40 41 ... 225next