|
|
|
| Web Hosting Guide |
![]() ![]() |
Get User Input From Vbscript For Batch Files, Get user input from vbscript |
Feb 8 2006, 05:35 PM
Post
#1
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 5 Joined: 6-February 06 Member No.: 11,120 |
Hello, I didn't see a tutorial on this subject so i'll go ahead and do it.
Long ago I used batch file programming a quite a bit. I used vbscript files to get user input for the batch files. So here is a simple example of using the 'call' command to call for the vbscript file which should be in the same folder as the .bat file. in the batch file pretty much anywhere you can start the vbscript, and call another .bat file- using @ to of course not echo the line of code - CODE @ start /w wscript.exe userin.vbs @ call ~anyname.bat @ del ~anyname.bat now for the .vbs file : create userin.vbs using a text editor such as notepad - CODE strUserIn = InputBox("This is the the input box will say") Set fs = CreateObject("Scripting.FileSystemObject") strFileName = fs.BuildPath(Wscript.ScriptFullName & "\..", "~anyname.bat") strFileName = fs.GetAbsolutePathName(strFileName) Set ts = fs.OpenTextFile(strFileName, 2, True) ts.WriteLine "set userin=" & strUserIn ts.Close[code] Now we use what ever was typed in to execute a command. So any dos/batch command that makes sense will fit there [code]@ Batch/doscommand -A %USERIN% And that is the basic idea of using vbs for batch files. |
|
|
|
Mar 20 2008, 08:57 PM
Post
#2
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
question
Get User Input From Vbscript For Batch Files I search for a thing like this. I would like to open in a VBS file a custom Windows dialog box to find for a file in my computer (the custom dialog in File -> Open) and pass the path of the file to a BATCH file. Is it possible ? -reply by cgialloporpora |
|
|
|
Jul 13 2008, 10:44 AM
Post
#3
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
how to transfer data from one folder to another automaticali using vbscript batch file
Get User Input From Vbscript For Batch Files How to transfer data from one folder to another automaticali using vbscript batch file -question by shrikant |
|
|
|
Dec 3 2008, 07:52 AM
Post
#4
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
ASP Classic validation of user input
Get User Input From Vbscript For Batch Files I have made a registration form that take the user input I need code to validate it at server side I need urgent help. -question by suman |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
0 | Cadey | 15 | Yesterday, 05:52 PM Last post by: Cadey |
|||
![]() |
19 | CarolinaBlues | 3,843 | 20th November 2009 - 09:59 PM Last post by: iG- |
|||
![]() |
32 | NilsC | 18,492 | 20th November 2009 - 12:15 PM Last post by: iG-topcathunter |
|||
![]() |
6 | grim reaper1666 | 160 | 18th November 2009 - 08:19 PM Last post by: grim reaper1666 |
|||
![]() |
18 | vicky99 | 7,323 | 16th November 2009 - 03:48 PM Last post by: starscream |
|||
![]() |
2 | iMacapple | 28 | 16th November 2009 - 09:41 AM Last post by: iMacapple |
|||
![]() |
32 | RGF | 7,933 | 14th November 2009 - 10:54 PM Last post by: yordan |
|||
![]() |
0 | somedaygo | 28 | 6th November 2009 - 03:07 AM Last post by: somedaygo |
|||
![]() |
1 | FirefoxRocks | 109 | 5th November 2009 - 11:39 PM Last post by: HannahI |
|||
![]() |
0 | Barretta | 34 | 4th November 2009 - 06:26 AM Last post by: Barretta |
|||
![]() |
7 | santed | 211 | 4th November 2009 - 03:08 AM Last post by: Soviet Rathe |
|||
![]() |
7 | bluefish | 2,796 | 3rd November 2009 - 09:29 PM Last post by: HannahI |
|||
![]() |
22 | Feelay | 2,889 | 3rd November 2009 - 08:13 PM Last post by: starscream |
|||
![]() |
5 | tansqrx | 3,109 | 2nd November 2009 - 09:26 PM Last post by: HannahI |
|||
![]() |
17 | vdhieu84 | 6,891 | 29th October 2009 - 07:44 PM Last post by: iG- |
|||
|
Lo-Fi Version | Time is now: 22nd November 2009 - 01:30 PM |
© 2009 AstaHost: Free Web Hosting & Technical Discussion, Free Web Hosting. a member of xisto.
Powered by Invision Board. Skin: IPB Forum Skins
Expand / Collapse Navigation



Feb 8 2006, 05:35 PM





