Search found 103 matches
- 11 Sep 2017 18:25
- Forum: DOS Batch Forum
- Topic: Delete directory and files with subdirectorys with ftp command line
- Replies: 19
- Views: 22723
- 11 Sep 2017 07:44
- Forum: DOS Batch Forum
- Topic: How can i re-launch my batch file from its link and at every turn running it again?
- Replies: 0
- Views: 6438
How can i re-launch my batch file from its link and at every turn running it again?
Hi I'm creating a tool for downloading and installing the latest Adobe Flash Player , so i embedded the icon in my batch file with certutil utility and i create a link to my batch file with this icon ,but i want to execute it from its link to show this icon on the left corner side of my batch file s...
- 09 Sep 2017 07:25
- Forum: DOS Batch Forum
- Topic: Searching easy way to remove double quotes around parameters?
- Replies: 5
- Views: 6448
Re: Searching easy way to remove double quotes around parameters?
@OP
The solution given by Compo dosen't work for you ??
What is the diffrence between %1 and %~1 ?
The solution given by Compo dosen't work for you ??
What is the diffrence between %1 and %~1 ?
- 05 Sep 2017 05:27
- Forum: DOS Batch Forum
- Topic: renaming a file from A - B.MP3 to B - A.MP3
- Replies: 9
- Views: 7963
Re: renaming a file from A - B.MP3 to B - A.MP3
You can try with this script : @echo off Title Reverse String set "InputFile=list.txt" set "OutPutFile=list2.txt" set "Tmpvbs=%~n0.vbs" ( echo Data = WScript.Arguments(0^) echo Data = StrReverse(Data^) echo wscript.echo Data )>"%Tmpvbs%" If exist "%OutPut...
- 29 Aug 2017 17:55
- Forum: DOS Batch Forum
- Topic: Scan and check for locked files
- Replies: 2
- Views: 3303
Scan and check for locked files
Hi I made this script thanks to dbenham's trick to check for locked file I made some test on my windows 7 (32 bits) and it works for me like a charm But, today, i test it on windows 7 (64 bits) , I noted that the script must be improved for the architecture 64 bits So my question what's the best fun...
- 28 Aug 2017 19:55
- Forum: DOS Batch Forum
- Topic: How to count the underscore in a filename variable ?
- Replies: 3
- Views: 3725
Re: How to count the underscore in a filename variable ?
Thank you, both for your reply! Effectively, @aGerman, you put me in the right direction The mistake: The variables cnt and pos are never reset to 0 so to correct this we should do like this : @echo off Rem The srting to count in the filename is the underscrore "_" Rem we can of course set...
- 28 Aug 2017 09:54
- Forum: DOS Batch Forum
- Topic: How to count the underscore in a filename variable ?
- Replies: 3
- Views: 3725
How to count the underscore in a filename variable ?
Hi I have this script in order to count the underscore in a file name variable! but, I have always the count is equal to zero? What wrong with this script? @echo off set /a "cnt=0" set /a "pos=0" setlocal enabledelayedexpansion @for /f "delims=" %%a in ('Dir /b "%u...
- 16 Aug 2017 13:48
- Forum: DOS Batch Forum
- Topic: How to search files from one folder to next till found
- Replies: 8
- Views: 6860
Re: How to search files from one folder to next till found
Give a try for this batch file : @echo off Mode con cols=100 lines=5 & color 9E Set "Location=C:\auto_pkg_build\Sources\Source_schemes\MOCK_UP" Set "Destination=C:\auto_pkg_build\Sources\Source_schemes\MOCK_UP_MASTER" Title Copy files from list.txt set "List=%~dp0list.tx...
- 16 Aug 2017 03:21
- Forum: DOS Batch Forum
- Topic: How to search files from one folder to next till found
- Replies: 8
- Views: 6860
Re: How to search files from one folder to next till found
Post the contents of this file : list.txt !
- 12 Aug 2017 15:10
- Forum: DOS Batch Forum
- Topic: Is the "Select all" link failing?
- Replies: 26
- Views: 21023
Re: Is the "Select all" link failing?
Works for me with Firefox , windows 7
- 11 Aug 2017 15:36
- Forum: DOS Batch Forum
- Topic: How to search files from one folder to next till found
- Replies: 8
- Views: 6860
Re: How to search files from one folder to next till found
Look at the command Where /?
- 07 Aug 2017 18:31
- Forum: DOS Batch Forum
- Topic: wait for website to load before running a script
- Replies: 2
- Views: 4246
Re: wait for website to load before running a script
First, this not a batch script , it's a vbscript You can take a look at this m And here is an example inspired from it : Just copy and paste in your notepad with this name and execute it: IE_Load.vbs Option Explicit Dim IE,IELink Set IE = CreateObject("InternetExplorer.Application") IELink...
- 01 Aug 2017 03:14
- Forum: DOS Batch Forum
- Topic: search a file(s) name having specific string
- Replies: 5
- Views: 4717
Re: search a file(s) name having specific string
@OP
Did you mean search a file having specfic string in the name or in their contents
It's unclear until now for me
Did you mean search a file having specfic string in the name or in their contents
It's unclear until now for me
- 01 Aug 2017 02:54
- Forum: DOS Batch Forum
- Topic: Rename files from a string in multiple text files?
- Replies: 8
- Views: 5664
Re: Rename files from a string in a text file?
You can use this function to replace a special Char : @echo off setlocal enabledelayedexpansion SET TEST=Example1 : "< = > & ^^^! |" SET TEST2=Example2 : ">>=^^^!>=^^^!<====<^^^!<=^^^!<=<=<&&<=^^^!<=<=|<&^=^=^!<||&===" echo;%TEST% before Replace call :ReplaceS...
- 01 Aug 2017 02:26
- Forum: DOS Batch Forum
- Topic: have a list of folder containing one file for each folder, need to find this file path in another folder/subfolder
- Replies: 2
- Views: 3174
Re: have a list of folder containing one file for each folder, need to find this file path in another folder/subfolder
In your case ,you should use the command WHERE : To locate and display files in a directory tree WHERE (Windows 2003 + ) Locate and display files in a directory tree. The WHERE command is roughly equivalent to the UNIX 'which' command. By default, the search is done in the current directory and in t...