0

Ok so I've got a file that goes and get info about file paths, and stores it, another file that is VBS and not batch needs to know the file path to work properly, so I'd need to echo the path in a specific line and column of the file without damaging the rest of the VBS How could we do that I've got here the code to search for paths and output it in a folder, but I don't know how to go through lines and columns of a file:

cd /d C:\
dir /b OzhECsxt6ncBIka1TgO8.bat /s 2> nul | find "" /v /c > 
set rwfile=
dir /b OzhECsxt6ncBIka1TgO8.bat /s
echo %rwfile%>new.vbs

i've tryed these without any good result:

set wfile=aze.txt
set wcontent=bro_naiuuu
for /F "skip=20 delims=20" %%p in %wfile% do echo %wcontent%
Stephan
  • 50,835
  • 10
  • 55
  • 88
  • 7
    Don't do that. Use [parameters](https://stackoverflow.com/questions/2806713/can-i-pass-an-argument-to-a-vbscript-vbs-file-launched-with-cscript) instead. – Stephan Dec 30 '19 at 12:57
  • 4
    The code you've posted has issues, and looks as if it will create a `new.vbs` file containing `echo is on.`. This site is not a code writing service, here we help you to fix a specific issue with your provided code. If you need how do I do this? as opposed to how do I fix this? you may be better deleting your question and posting it to [Super User](https://superuser.com/questions/ask) instead. – Compo Dec 30 '19 at 13:04

0 Answers0