autoend .vbs when it runs .batLaunch IE and Wait for it to be closedPowershell vs. vbs vs. batVBScript in...
Why are the books in the Game of Thrones citadel library shelved spine inwards?
How to tell if a BJT is PNP or NPN by looking at the circuit?
Play Zip, Zap, Zop
Move fast ...... Or you will lose
What is the difference between rolling more dice versus fewer dice?
How would an AI self awareness kill switch work?
How do I append a character to the end of every line in an Excel cell?
Why would space fleets be aligned?
Why zero tolerance on nudity in space?
Can you tell from a blurry photo if focus was too close or too far?
Early credit roll before the end of the film
Slow While Loop, Query Improvment Assistance
Gear reduction on large turbofans
Can I make estimated tax payments instead of withholding from my paycheck?
A Missing Symbol for This Logo
Why is working on the same position for more than 15 years not a red flag?
What does it mean for a caliber to be flat shooting?
Removing disk while game is suspended
Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?
Why do cars have plastic shrouds over the engine?
How can I get my players to come to the game session after agreeing to a date?
Do theoretical physics suggest that gravity is the exchange of gravitons or deformation/bending of spacetime?
Has any human ever had the choice to leave Earth permanently?
Is there any risk in sharing info about technologies and products we use with a supplier?
autoend .vbs when it runs .bat
Launch IE and Wait for it to be closedPowershell vs. vbs vs. batVBScript in Windows 7 64bit Scheduled Task - Works with only run when logged in.bat runs from command line but not when scheduledLaunch multiple programs in background on windows 8.1Windows file's default action to open with a vbs script?Error calling .vbs from .batTranslate .bat coomands to .vbsHow to run a bat or vbs file in task schedulerVbscript for autologin
I have this script and I need it to finish (auto-end or autokill itself and also close wscript.exe) after launching the .bat
Dim Fso
Set Fso = WScript.CreateObject("Scripting.FileSystemObject")
set objshell = createobject("wscript.shell")
homedrive = objshell.ExpandEnvironmentStrings( "%HOMEDRIVE%" )
SCRIPT = homedrive & "testbar.bat"
strPath = Wscript.ScriptFullName
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strPath)
strFolder = objFSO.GetParentFolderName(objFile)
NewPath = objFSO.BuildPath(strFolder, SCRIPT)
set objshell = createobject("wscript.shell")
objshell.Run (script),1,True
I tried with this code and it did not work
with WScript.Quit (at the end of the script) and it did not work
Any ideas?
batch vbscript
add a comment |
I have this script and I need it to finish (auto-end or autokill itself and also close wscript.exe) after launching the .bat
Dim Fso
Set Fso = WScript.CreateObject("Scripting.FileSystemObject")
set objshell = createobject("wscript.shell")
homedrive = objshell.ExpandEnvironmentStrings( "%HOMEDRIVE%" )
SCRIPT = homedrive & "testbar.bat"
strPath = Wscript.ScriptFullName
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strPath)
strFolder = objFSO.GetParentFolderName(objFile)
NewPath = objFSO.BuildPath(strFolder, SCRIPT)
set objshell = createobject("wscript.shell")
objshell.Run (script),1,True
I tried with this code and it did not work
with WScript.Quit (at the end of the script) and it did not work
Any ideas?
batch vbscript
add a comment |
I have this script and I need it to finish (auto-end or autokill itself and also close wscript.exe) after launching the .bat
Dim Fso
Set Fso = WScript.CreateObject("Scripting.FileSystemObject")
set objshell = createobject("wscript.shell")
homedrive = objshell.ExpandEnvironmentStrings( "%HOMEDRIVE%" )
SCRIPT = homedrive & "testbar.bat"
strPath = Wscript.ScriptFullName
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strPath)
strFolder = objFSO.GetParentFolderName(objFile)
NewPath = objFSO.BuildPath(strFolder, SCRIPT)
set objshell = createobject("wscript.shell")
objshell.Run (script),1,True
I tried with this code and it did not work
with WScript.Quit (at the end of the script) and it did not work
Any ideas?
batch vbscript
I have this script and I need it to finish (auto-end or autokill itself and also close wscript.exe) after launching the .bat
Dim Fso
Set Fso = WScript.CreateObject("Scripting.FileSystemObject")
set objshell = createobject("wscript.shell")
homedrive = objshell.ExpandEnvironmentStrings( "%HOMEDRIVE%" )
SCRIPT = homedrive & "testbar.bat"
strPath = Wscript.ScriptFullName
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile(strPath)
strFolder = objFSO.GetParentFolderName(objFile)
NewPath = objFSO.BuildPath(strFolder, SCRIPT)
set objshell = createobject("wscript.shell")
objshell.Run (script),1,True
I tried with this code and it did not work
with WScript.Quit (at the end of the script) and it did not work
Any ideas?
batch vbscript
batch vbscript
asked 12 mins ago
ajcgajcg
242211
242211
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1410033%2fautoend-vbs-when-it-runs-bat%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1410033%2fautoend-vbs-when-it-runs-bat%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown