Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 207
  • 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
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

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