ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

Help with Cscript.exe - closes instantly ?



Trying to run a Script with a program on my windows laptop but i cant, every time i go to 'run' and put in Cscript.exe the script window opens with something in it but then closes instantly, am i doing something wrong ? cant find anything online to help
 

ChrisR

ClioSport Club Member
open up a command prompt first (type cmd in the run window) to bring up the command prompt and do it in there maybe.

It's opening and closing the way you are doing it as the computer is just running cscript.exe with nothing else, so it runs and closes without doing anything.

Crap explanation but I'm tired, but give that a go.
 
Brilliant, cheers, however i sitll cant figure it all out, ive put the script in the cmd, now how do i save/run it?
 
Open run, type cmd. When black box opened type location of cscript.exe and it should display reaults in the black window.
 
  Clio 197
You run the script by pressing enter , if it won't run it will give you an error. What are you trying to do exactly ?
 

SharkyUK

ClioSport Club Member
I say this with all due respect mate... but if you are unsure why cscript.exe is not working as you expect, should you really be using it? The exe acts as a controller to compliant script engines that are registered with the system, hence I'm assuming you are trying to run a VBScript of JScript or similar? Not having a go mate, just trying to ensure you don't do something you might regret to your system setup! :D
 
Run it as a .bat file, that's what I used to do with a hooky copy of VCDS.

Open notepad, past this in
@ECHO OFFCD\
CLS

:LOOP
XCOPY /Y /R "C:\D1.bin" "C:\Program Files\VAG-COM"
XCOPY /Y /R "C:\D2.bin" "C:\Program Files\VAG-COM"
XCOPY /Y /R "C:\D3.bin" "C:\Program Files\VAG-COM"
ping -n 01 localhost >NUL
GOTO LOOP

And save it as a .bat file.
 
if i save it as .bat will that keep it working all the time?

so i copy that in to notepad save it as vagcom.bat and then thats it done ?
 
It should be yes.

The one I used was this :

@ECHO OFF

: STRT


if not exist "C:\Program Files\VAG-COM\d1.bin" copy "C:\vagcopy\d1.bin" "c:\program files\vag-com\d1.bin"
if not exist "C:\Program Files\VAG-COM\d2.bin" copy "C:\vagcopy\d2.bin" "c:\program files\vag-com\d2.bin"
if not exist "C:\Program Files\VAG-COM\d3.bin" copy "C:\vagcopy\d3.bin" "c:\program files\vag-com\d3.bin"


GOTO STRT

Then make sure the file paths are the same.

If you get stuck let me know and I'll send you a link to my script file.
 
I know im coming across as a bit of an idiot here, im completely out of my depth.
What do you mean by file paths?

Really want to start some data logging on my S3
 

SharkyUK

ClioSport Club Member
I know im coming across as a bit of an idiot here, im completely out of my depth.
What do you mean by file paths?

Really want to start some data logging on my S3
The file paths are where the file(s) are located - e.g. the "C:\Program Files\... etc" bit.

You need to make sure these are changed/updated to suit your specific setup.
 
Ok i see, the vagcom folder is in the program files, the problem is the 3 bin files are constantly getting deleted from the vagcom folder, so i assume by using the script above it will stop vagcom from deleting the bin files from the vagcom folder ?

So i will run the crack - instal the bin files in to the vagcom folder then run the script above ?
 
You paste the bin files in a folder you create (C:\vagcopy\).

Then the script file copies them and places them in c:\program files\vag-com every time they are deleted.

It runs in a constant loop.
 
Ah i see, makes sense now, i shall have a go tomorrow, thanks for you help mate, ive been doing no-end of searching online to figure this out
 


Top