• Notice regarding image hosts and attachments. See here.

vbs Script Whats wrong

Associate
Joined
24 Oct 2006
Posts
1,752
Location
Sheffield
this is my script why wont it wrok eventualy it will delete autoexec.cfg and put my fps configh there form the script but why wont it work now

Code:
Set objShell = CreateObject("Wscript.Shell")
Set WshShell = WScript.CreateObject("WScript.Shell")

ts = InputBox("Please enter your steam username")

WshShell.Run ("C:\Program Files\Steam\SteamApps\" & ts & "\""counter-strike source\cstrike\cfg\autoexec.cfg")

'End
 
Last edited:
still dosent work

this is the current script

Code:
Set objShell = CreateObject("Wscript.Shell")
Set WshShell = WScript.CreateObject("WScript.Shell")

ts = InputBox("Please enter your steam username")


	

WshShell.Run "C:\Program Files\Steam\SteamApps\ & ts & \counter-strike source\cstrike\cfg\autoexec.cfg"


'End


i think its got something to do with the space between program files and strike source
 
Last edited:
right ui cant open the folder nevermind the cfg so instead of \autoexec.cfg just \ till dosent work
 
ta theat worked

can you explain this
Code:
" & cStr(ts) & "
and this
Code:
& """"
the & sign
 
Back
Top Bottom