Search found 546 matches
- 10 Aug 2016 06:56
- Forum: DOS Batch Forum
- Topic: Return total number of found strings using JREPL
- Replies: 9
- Views: 7278
Re: Return total number of found strings using JREPL
Dave - Works like a charm!! Thank you! It's amazing how much slower DOS is compared to Shell. For instance, I'm running this script over 12 files equaling about 24gigs. It takes approx 1.5 hours. With shell, it completes the same data set in about 15 minutes. I wish there was a way to speed things u...
- 10 Aug 2016 04:31
- Forum: DOS Batch Forum
- Topic: Return total number of found strings using JREPL
- Replies: 9
- Views: 7278
Re: Return total number of found strings using JREPL
Thank you, Dave!
I just tried to test this and I'm getting a JScript error:
JScript run time error in replace code: 'x' is undefined.
Thanks!
I just tried to test this and I'm getting a JScript error:
JScript run time error in replace code: 'x' is undefined.
Thanks!
- 09 Aug 2016 07:54
- Forum: DOS Batch Forum
- Topic: Return total number of found strings using JREPL
- Replies: 9
- Views: 7278
Return total number of found strings using JREPL
Good Morning D - I'm using JREPL.bat file and complimenting code to search a set of import files for a specific string. Here is the code I am using: @echo off setlocal for %%F in (*.txt) do ( set "file=%%F" jrepl " 0 " "cnt+=1; false" /l /jmatch /jbeg "cnt=0" ...
- 05 Aug 2016 16:35
- Forum: DOS Batch Forum
- Topic: How to store multiple selections from menu prompts?
- Replies: 11
- Views: 8399
Re: How to store multiple selections from menu prompts?
Ah yes, testing now!
- 05 Aug 2016 16:12
- Forum: DOS Batch Forum
- Topic: How to store multiple selections from menu prompts?
- Replies: 11
- Views: 8399
Re: How to store multiple selections from menu prompts?
Hi Guys -
Thank you so much! This works as expected.
However, the portion where I need to perform the copy happens later on in the script, not necessarily within the block.
Is there anyway to store %%~i so I can use it later on in the script?
Thank you so much! This works as expected.
However, the portion where I need to perform the copy happens later on in the script, not necessarily within the block.
Is there anyway to store %%~i so I can use it later on in the script?
- 05 Aug 2016 14:32
- Forum: DOS Batch Forum
- Topic: How to store multiple selections from menu prompts?
- Replies: 11
- Views: 8399
Re: How to store multiple selections from menu prompts?
Thank you aGerman.
Ill adapt this to my code and let you know. I may have another question in a bit, but will let you know.
Thank you!
Ill adapt this to my code and let you know. I may have another question in a bit, but will let you know.
Thank you!
- 05 Aug 2016 13:46
- Forum: DOS Batch Forum
- Topic: How to store multiple selections from menu prompts?
- Replies: 11
- Views: 8399
Re: How to store multiple selections from menu prompts?
AGerman - That is just a question to prompt the user to make SURE the selection they entered in correct. Their selection is currently stored in the variable called "MIG_DEF_DEF, shown as set /p MIG_DEF_DIR= They make their selection from a list thats generated with the former section, as shown ...
- 05 Aug 2016 12:19
- Forum: DOS Batch Forum
- Topic: How to store multiple selections from menu prompts?
- Replies: 11
- Views: 8399
How to store multiple selections from menu prompts?
Good Afternoon Team - A portion of a script I am writing prompts the user to select all directories that are required for their specific process Most times, the user will need to select multiple directories, not just one. Then, later on the script, those directories the user selected will need to be...
- 03 Aug 2016 18:03
- Forum: DOS Batch Forum
- Topic: PSEXEC script claims XCOPY syntax invalid on remote server
- Replies: 10
- Views: 9610
Re: PSEXEC script claims XCOPY syntax invalid on remote server
aGerman -
Thank you so much for all your efforts! This makes sense and I have been able to get my process to execute.
Thank you!
Thank you so much for all your efforts! This makes sense and I have been able to get my process to execute.
Thank you!
- 01 Aug 2016 06:27
- Forum: DOS Batch Forum
- Topic: PSEXEC script claims XCOPY syntax invalid on remote server
- Replies: 10
- Views: 9610
Re: PSEXEC script claims XCOPY syntax invalid on remote server
Hi aGerman -
_env.cmd sits in the working directory. Perhaps it's unnecessary?
I did try the working directory syntax but unfortunately, its still unable to read that _env file on the remote server.
_env.cmd sits in the working directory. Perhaps it's unnecessary?
I did try the working directory syntax but unfortunately, its still unable to read that _env file on the remote server.
- 01 Aug 2016 04:50
- Forum: DOS Batch Forum
- Topic: PSEXEC script claims XCOPY syntax invalid on remote server
- Replies: 10
- Views: 9610
Re: PSEXEC script claims XCOPY syntax invalid on remote server
HI aGerman - So, a quick update, I've been able to get my remote batch script to execute. What I needed to do was declare all variables in the script itself, rather than in an environment/properties file I call from it. While it works, it of course is a little cluttered. For instance, this is how I ...
- 31 Jul 2016 06:53
- Forum: DOS Batch Forum
- Topic: PSEXEC script claims XCOPY syntax invalid on remote server
- Replies: 10
- Views: 9610
Re: PSEXEC script claims XCOPY syntax invalid on remote server
Hi Guys - One more update. Been testing a bunch of different things. I'm back to square one. The previous fix yesterday was not an actually fix. I was mistaken. A few things are still going on: 1. Unable to read any variables in remote batch file I'm trying to execute A. The remote batch file calls ...
- 30 Jul 2016 16:04
- Forum: DOS Batch Forum
- Topic: PSEXEC script claims XCOPY syntax invalid on remote server
- Replies: 10
- Views: 9610
Re: PSEXEC script claims XCOPY syntax invalid on remote server
Hi Guys - One last update. Variable in the target script in source paths, for instance, any MOVE or COPY commands, are still unable to be read. However, I"ve removed those variables and used the hard coded paths. I'm also able to copy to remote servers from the target script now. I changed the ...
- 30 Jul 2016 13:42
- Forum: DOS Batch Forum
- Topic: PSEXEC script claims XCOPY syntax invalid on remote server
- Replies: 10
- Views: 9610
Re: PSEXEC script claims XCOPY syntax invalid on remote server
I've done more testing and the process works if no variables are used. FO rinstance, in place of the current XCOPY portion of code in the remote server script, I used: ECHO f | XCOPY /f /y "TEST.txt" "TESTFINAL.txt">>%logfile% And that works. However, when I add a variable to the...
- 30 Jul 2016 10:07
- Forum: DOS Batch Forum
- Topic: PSEXEC script claims XCOPY syntax invalid on remote server
- Replies: 10
- Views: 9610
PSEXEC script claims XCOPY syntax invalid on remote server
HI Guys - Would there be a reason why when executing a PSEXEC script on my source server, it fails on the XCOPY portion of a script it executes on the target server? Source server syntax: echo ********************************************************>>%logfiles% echo LOAD starts at %TIME% >>%logfiles...