Solved

How to run Invisible a .bat file?

Posted on 2016-10-01
3
47 Views
Last Modified: 2016-10-01
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
Comment
Question by:john lambert
3 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 41824550
You'll always have to provide a path, so the only way is a "fixed" path, like %temp%.
1
 
LVL 23

Expert Comment

by:NVIT
ID: 41824554
What path?

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

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

Or both?
0
 

Author Closing Comment

by:john lambert
ID: 41824965
thank you///
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now