• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

How to run Invisible a .bat file?

I find this solution but i don't like PATH scripts:
Can anyone create a script be able to open it everywhere without have to always change the path etc..
I found this script but as u can see i must always change the path:

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

Open in new window

wscript.exe "C:\Wherever\invisible.vbs" "C:\Some Other Place\MyBatchFile.bat"

Open in new window


thank you
0
john lambert
Asked:
john lambert
1 Solution
 
QlemoC++ DeveloperCommented:
You'll always have to provide a path, so the only way is a "fixed" path, like %temp%.
1
 
NVITCommented:
What path?

Here? "C:\Wherever\invisible.vbs"

Or here? "C:\Some Other Place\MyBatchFile.bat"

Or both?
0
 
john lambertAuthor Commented:
thank you///
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now