Search found 336 matches

by MigrationUser
2021-Aug-02, 7:47 am
Forum: Windows CMD Shell
Topic: Robocopy error Accessing Destination Directory
Replies: 0
Views: 10944

Robocopy error Accessing Destination Directory

08 Mar 2013 00:16 drifty I have a USB drive connected to a windows 7 machine and planned on running robocopy from the USB drive to copy several folders from the Windows 7 machine to a folder i have already created on the usb drive. However when I run the batch file it creats the folder and copies on...
by MigrationUser
2021-Jul-27, 6:14 pm
Forum: Windows CMD Shell
Topic: Delete All but Last N Log Files
Replies: 0
Views: 7993

Delete All but Last N Log Files

06 Mar 2007 07:19 jduff I'm maintaining a folder that contains log files of the form log.0001, log.0002, log.0003, etc. The log numbers continually increase, and the newest log file extension is set to the highest number. However, because of space limitations I want to keep only the last 3 log files...
by MigrationUser
2021-Jul-27, 5:23 pm
Forum: Windows CMD Shell
Topic: [Undocumented] Variables __CD__ & __APPDIR__
Replies: 0
Views: 7653

[Undocumented] Variables __CD__ & __APPDIR__

23 Dec 2014 21:48 carlos Hello. I found a new undocumented variable, in addition to %__CD__% it is %__APPDIR__% %__APPDIR__% have the path (with a backlash at the end) where the application that request the variable is located. For example, if we run C:\Windows\system32\cmd.exe , %__APPDIR__% will e...
by MigrationUser
2021-Jul-27, 5:03 pm
Forum: Windows CMD Shell
Topic: Question About DeQuote Script
Replies: 0
Views: 7305

Question About DeQuote Script

09 Dec 2007 03:10 Nicholi I got a few questions about the DeQuote script I saw on the site. What is the colon doing in the following line after FINDSTR and before the GOTO command? Echo.%DeQuote.Contents%|FindStr/brv ""^">NUL:&&Goto :EOF ^ I understand this part of the script ...
by MigrationUser
2021-Jul-27, 4:36 pm
Forum: Windows CMD Shell
Topic: Incomplete documentation for SET /A
Replies: 0
Views: 8449

Incomplete documentation for SET /A

16 Jan 2013 01:37 npocmaka Just compared the SET /? and SS64 page. Nothing is mentioned about : ~ , ! (and in fact also for - as a unary operator) and , .As they are almost obvious the parentheses also are not mentioned as logical separators .. ~ is the most strange - It acts as -(x+1) : C:\>set /a ...
by MigrationUser
2021-Jul-26, 10:47 pm
Forum: Windows CMD Shell
Topic: Error in documentation of EXIT command
Replies: 0
Views: 6266

Error in documentation of EXIT command

19 Nov 2015 15:19 Aacini The documentation of EXIT command given at https://ss64.com/nt/exit.html indicate that a FOR command placed in a subroutine can be terminated with EXIT /B command. However, this not works if the loop is a FOR /L one. The only way to break a FOR /L is with plain EXIT command,...
by MigrationUser
2021-Jul-26, 9:32 pm
Forum: Windows PowerShell
Topic: GCI / dir command : how to get plain (unembellished) output
Replies: 0
Views: 17363

GCI / dir command : how to get plain (unembellished) output

25 Jan 2019 04:33 be In batch dir /b, wildcard ? unavoidably snags some unacceptable results; therefore in batch I need to use instead an equivalent powershell command. This line >powershell "dir -directory -include ???-?? |select fullname" gives correct results. However, they are preceded...
by MigrationUser
2021-Jul-26, 9:00 pm
Forum: Windows CMD Shell
Topic: Count filename length and output to file if over 102 characters?
Replies: 0
Views: 4937

Count filename length and output to file if over 102 characters?

20 May 2019 11:16 Rekrul The problem: I have a bunch of files in subdirectories. I want to recursively check the length of each filename and output it to a text file (ideally with the path) if the name is over 102 characters. I want to do this to check for names that are too long for burning to a di...
by MigrationUser
2021-Jul-26, 8:56 pm
Forum: Windows CMD Shell
Topic: REN and MOVE for very long directory and file names exceeding MAX_PATH
Replies: 0
Views: 4847

REN and MOVE for very long directory and file names exceeding MAX_PATH

22 Jan 2019 21:06 Commander_Keen Hi, I'm trying to batch rename and/or move files which are stored a directory with long path so that path+filename exeed MAX_PATH. While DEL is documented as being capable of using a syntax like this DEL "\\?\C:\some long folder\long file name.txt" (ss64.co...
by MigrationUser
2021-Jul-26, 8:50 pm
Forum: Meta: Site Feedback / Forum Q&A
Topic: Downloading the entire ss64 site for personal offline use
Replies: 0
Views: 17895

Downloading the entire ss64 site for personal offline use

28 Aug 2018 01:24 id1010terror Hello Forum, I'll be going to a location where my internet connection is likely to go down for unknown periods of time and I would like to have a copy of this site on an external drive (not for hosting only anywhere else). I've reviewed the sites copywrite page which e...