Search found 136 matches
- 19 Jul 2016 11:06
- Forum: DOS Batch Forum
- Topic: The script not find any esd file
- Replies: 1
- Views: 2294
The script not find any esd file
I modified your script in this way @echo off &setlocal DisableDelayedExpansion ::http://www.dostips.com/forum/viewtopic.php?p=47747#p47747 :: Post subject: Validity of the directories and files names ::Posted: Wed Jul 13, 2016 12:26 pm by balubeto ::modified: Thu Jul 14, 2016 by thefeduke adding...
- 18 Jul 2016 10:09
- Forum: DOS Batch Forum
- Topic: check the file existence
- Replies: 1
- Views: 2263
check the file existence
Hi I have this script @echo off &setlocal DisableDelayedExpansion ::http://www.dostips.com/forum/viewtopic.php?p=47747#p47747 :: Post subject: Validity of the directories and files names ::Posted: Wed Jul 13, 2016 12:26 pm by balubeto ::modified: Thu Jul 14, 2016 by thefeduke adding create as op...
- 15 Jul 2016 11:46
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Re: Check the validity of the directories and files names
Almost perfect. Why the script never ask you to enter the name (with its extension) of esd files? Thanks. The esd file must exist to do the run, so I look for it. If I find only one esd input file in the esd directory, I did not see a reason for you to type it and loop until you got it right. If yo...
- 15 Jul 2016 09:55
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Re: Check the validity of the directories and files names
More making up of mind seems required. . Recent posts have clarified that you do indeed want both ways. So I have used your latest framework. You incorporated aGerman's fine directory validation code in a way that the setlocal and endlocal statements need a little work. I modified both to give you ...
- 14 Jul 2016 11:41
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Re: Check the validity of the directories and files names
The last penpen's script works but: 1) When I enter an absolute path to a valid directory, it continues to display the "invalid=The Path you specified for %~1 ^("%input%"^) is invalid." message. How do I remove it? 2) It does not control more the validity of the directories with ...
- 14 Jul 2016 01:34
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Re: Check the validity of the directories and files names
However, the already existing directory should be considered valid from the script; while, if a user enters an X:\A\B.ext directory that does not exist, the script should consider it invalid. I created this script . . . but I have problems because, when I insert a new directory nonexistent, the scr...
- 13 Jul 2016 10:26
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Re: Check the validity of the directories and files names
I created this script @echo off &setlocal DisableDelayedExpansion call :loop "Windows_Files_Path" "Enter the directory in which put the content of the Windows Setup Media volume image:" call :loop "iso_Path" "Enter the directory in which put the iso image file ...
- 10 Jul 2016 10:59
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Re: Check the validity of the directories and files names
It's pretty annoying to ask you several times for each single detail. Keep in mind that you are the only source for informations that potential helpers have. If you're not able to answer questions properly I will lock this thread too. You missed question 3. Shall the script only consider already ex...
- 10 Jul 2016 01:27
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Re: Check the validity of the directories and files names
This script should work only with existing local NTFS partitions that support long names. If the file has no extension, the path X:\A\B should be considered the absolute path of a directory. If X:\A\B.ext is an existing directory, the script should treat it as a directory. If a user does not have th...
- 08 Jul 2016 02:12
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Re: Validity of the directories and files names
foxidrive wrote:The script is rather different here: http://forum.html.it/forum/showthread.p ... id=2940940
Because it was an old version.
Thanks
Bye
- 07 Jul 2016 11:38
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Re: Validity of the directories and files names
Sorry again but does anyone know how to solve my problem?
Thanks
Bye
Thanks
Bye
- 06 Jul 2016 12:02
- Forum: DOS Batch Forum
- Topic: Check the validity of the directories and files names
- Replies: 34
- Views: 26606
Check the validity of the directories and files names
Hi I have this script @echo off setlocal enableExtensions disableDelayedExpansion call :setValidPath "Windows_Files_Path" "%~1" "Enter the directory in which put the content of the ""Windows Setup Media"" volume image:" call :setValidPath "iso_P...
- 06 Jul 2016 01:38
- Forum: DOS Batch Forum
- Topic: bat script with parameters and personalized message
- Replies: 38
- Views: 27747
Re: bat script with parameters and personalized message
You may add your own validity checking code after that line(s): :: insert code for additional validity checking There are two of these comments in the source - one after the label ":validatePath", and one after the ":validateFile": the environment variable "input" cont...
- 05 Jul 2016 09:57
- Forum: DOS Batch Forum
- Topic: bat script with parameters and personalized message
- Replies: 38
- Views: 27747
Re: bat script with parameters and personalized message
I tried this script and I noticed that the directories, which are valid but do not exist, are not saved in their respective variables. Why? I didn't check the validity of the file-/pathname; i only built a framework (with sample validity checks) where you could add your own validity checking as you...
- 05 Jul 2016 02:48
- Forum: DOS Batch Forum
- Topic: bat script with parameters and personalized message
- Replies: 38
- Views: 27747
Re: bat script with parameters and personalized message
Does anyone know how to solve my problem in a more suitable form? You should precise what you want to do... . Maybe something like this may help you (but that's just guessed): @echo off setlocal enableExtensions disableDelayedExpansion call :setValidPath "Windows_Files_Path" "%~1&quo...