|Here is what the script was edited to for my specific instance.|
set input="P:\STOCK\I08\SA\IES\3210",15,18-23,%%A %%B %%C %%D %%E %%F
for /f "tokens=1-3* delims=," %%1 in ("!input!") do (
set file=%%1&set line#=%%2&set toks=%%3&set flds=%%4
set /a line#-=1
more +%line#% !file!>%temp%\tempfile.txt
set /p inputline=<%temp%\tempfile.txt
for /f "tokens=%toks%" %%A in ("!inputline!") do (
I removed the @echo because when I run the .vbs file it gives me an invalid character on line 1 character 1.
I then added the path to the file without quotes and it did not like the colon in the string.
So then I added quotes to the file path which is gave an error on character 37 of that line which is the comma after the quotes.
Above is the exact path of one of the files.
I have to run it from a different drive as the source file is on a mapped drive and running the script from the server itself is not possible.
I appreciate it, any further help would be great, not sure what needs to be done.