Solved

How to run Invisible a .bat file?

Posted on 2016-10-01
3
70 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 69

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 24

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 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