Search found 34 matches

by xiro
17 Mar 2023 00:48
Forum: DOS Batch Forum
Topic: Check File Size Properties
Replies: 12
Views: 9104

Re: Check File Size Properties

I have now the sample script $folder1 = Get-ChildItem -Path " E:\XXX\Videos " -Recurse | Measure-Object -Property Length -Sum $folder2 = Get-ChildItem -Path " F:\NEWLYCREATED FOLDER " -Recurse | Measure-Object -Property Length -Sum if ($folder1.Sum -gt $folder2.Sum) { Write-Host "Folder1 is larger t...
by xiro
15 Mar 2023 23:49
Forum: DOS Batch Forum
Topic: Check File Size Properties
Replies: 12
Views: 9104

Re: Check File Size Properties

Hello this is Gulshan Negi Well, to view folder size properties with a right click using a batch file, you can create a batch script that uses the Windows PowerShell command-line interface. To find resources and information related to this topic, you can search for phrases like "batch script to get...
by xiro
14 Mar 2023 19:35
Forum: DOS Batch Forum
Topic: AUTO CONTROL+F
Replies: 2
Views: 3111

Re: AUTO CONTROL+F

Mmm... Is that because you have not searched for the appropriate terms perhaps? If you want to open an application (not a file) and after that enter/input/send a key (not open the control-f), then perhaps this answer could help you... Antonio Opening an app on cmd is kind a bit easy it is just by u...
by xiro
14 Mar 2023 03:15
Forum: DOS Batch Forum
Topic: AUTO CONTROL+F
Replies: 2
Views: 3111

AUTO CONTROL+F

Guys, I have been searching but could not see anything regarding opening a file ( that's the easy part done that part already :) ) after it opens it automatically open the control+f so I will just type the search keyword that I like to search. Have anyone tried a project like this or is this doable ...
by xiro
12 Mar 2023 20:13
Forum: DOS Batch Forum
Topic: Generic USB Drive Letter
Replies: 10
Views: 10139

Re: Generic USB Drive Letter

If your system has access to WMIC, you can define the USB drive letter as a variable rather easily like this: for /f "skip=2 tokens=2 delims=," %%g in ('%__APPDIR__%wbem\WMIC.exe logicaldisk where "drivetype=2" get DeviceID 2^>nul /format:csv') do set "usbDrive=%%g" Subsequently, you can use 'if de...
by xiro
10 Mar 2023 01:26
Forum: DOS Batch Forum
Topic: Generic USB Drive Letter
Replies: 10
Views: 10139

Re: Generic USB Drive Letter

If your system has access to WMIC, you can define the USB drive letter as a variable rather easily like this: for /f "skip=2 tokens=2 delims=," %%g in ('%__APPDIR__%wbem\WMIC.exe logicaldisk where "drivetype=2" get DeviceID 2^>nul /format:csv') do set "usbDrive=%%g" Subsequently, you can use 'if de...
by xiro
10 Mar 2023 01:24
Forum: DOS Batch Forum
Topic: Check File Size Properties
Replies: 12
Views: 9104

Re: Check File Size Properties

@echo off setlocal set "folder1=C:" set "folder2=E:" set "size1=" set "size2=" for /f "tokens=1,2 delims=: " %%a in ('robocopy "%folder1%" "%folder1%" /L /S /NJH /BYTES /FP /NC /NDL /NFL /TS /XJ /R:0 /W:0') do if /i "%%a"=="Bytes" set "size1=%%b" for /f "tokens=1,2 delims=: " %%a in ('robocopy "%fol...
by xiro
09 Mar 2023 18:51
Forum: DOS Batch Forum
Topic: Generic USB Drive Letter
Replies: 10
Views: 10139

Re: Generic USB Drive Letter

If your system has access to WMIC, you can define the USB drive letter as a variable rather easily like this: for /f "skip=2 tokens=2 delims=," %%g in ('%__APPDIR__%wbem\WMIC.exe logicaldisk where "drivetype=2" get DeviceID 2^>nul /format:csv') do set "usbDrive=%%g" Subsequently, you can use 'if de...
by xiro
08 Mar 2023 07:55
Forum: DOS Batch Forum
Topic: Check File Size Properties
Replies: 12
Views: 9104

Re: Check File Size Properties

ShadowThief wrote:
07 Mar 2023 22:30
If all you need is the size of some folder, that's been posted on here before: viewtopic.php?t=9615
I will try this thank you for your assistance pal😐
by xiro
08 Mar 2023 07:55
Forum: DOS Batch Forum
Topic: Check File Size Properties
Replies: 12
Views: 9104

Re: Check File Size Properties

ShadowThief wrote:
07 Mar 2023 22:30
If all you need is the size of some folder, that's been posted on here before: viewtopic.php?t=9615
I will try this thank you for your assistance pal😐
by xiro
07 Mar 2023 18:11
Forum: DOS Batch Forum
Topic: Generic USB Drive Letter
Replies: 10
Views: 10139

Re: Generic USB Drive Letter

I know what you're trying to do, but until you have the basic code correct, I'm not going to add more to it. You have now submitted a modified RoboCopy command line, which is still invalid/incorrect. The source and destination should not end with trailing backward slashes. In your case above you ne...
by xiro
07 Mar 2023 02:12
Forum: DOS Batch Forum
Topic: Check File Size Properties
Replies: 12
Views: 9104

Re: Check File Size Properties

I don't understand why you need this. Just right-click the first folder and select Properties, and then right-click the second folder and select Properties. There's no need to bring a script into this at all based on what you've described so far. That is for automation where I don't need to bother ...
by xiro
06 Mar 2023 20:14
Forum: DOS Batch Forum
Topic: Check File Size Properties
Replies: 12
Views: 9104

Re: Check File Size Properties

xiro wrote:
06 Mar 2023 20:14
Sponge Belly wrote:
25 Feb 2023 08:47
Hi Xiro! :)

Please read this Microsoft Community thread.

HTH!

- SB
Haha..... How to do that with a batch file to choose a folder then know their sizes by just clicking the .bat file and the properties window would show up and I can now Identify if it both folder are of same size :)
by xiro
06 Mar 2023 20:14
Forum: DOS Batch Forum
Topic: Check File Size Properties
Replies: 12
Views: 9104

Re: Check File Size Properties

Sponge Belly wrote:
25 Feb 2023 08:47
Hi Xiro! :)

Please read this Microsoft Community thread.

HTH!

- SB
Haha..... How to do that with a batch file to choose a folder then know their sizes by just clicking the .bat file and the properties window would show up and I can now Identify if it both folder are of same size :)
by xiro
06 Mar 2023 18:39
Forum: DOS Batch Forum
Topic: Generic USB Drive Letter
Replies: 10
Views: 10139

Re: Generic USB Drive Letter

First things first…your RoboCopy command is incorrect. Please open a Command Prompt window, type %SystemRoot%\System32\Robocopy.exe /? and press the [ENTER] key to find out its basic syntax. ROBOCOPY source destination [file] robocopy " E: \CTI\" "%AppData%\Microsoft\Signatures" Here I have modifie...