Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


working on new basic script. need help =(

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,60354
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> working on new basic script. need help =(
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 working on new basic script. need help =( - 5/18/2008 11:24:34 AM   
  Kinyusha

 

Posts: 4
Score: 0
Joined: 5/12/2008
Status: offline
hi

Ok so i have this script that will create a file with any name that i want n the location of where i want to put it BUT

I want to create a text file base on the extension i want, not just .txt.
also, is it possible to have strb=inputbox and tell it to where i want to store the file not just in C:?
*like, i want to store a file in the C:\HR*

If i have it like this ("C: .txt , .vbs , .bat"), it will create 3 file base on those extension. my head is really confuse right now so please help me clear the mud out.
here is the script:

Set objFSO = CreateObject("Scripting.FileSystemObject")
stra=inputbox ("Name of a file")
Set objFile = objFSO.CreateTextFile ("C: .txt")
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> working on new basic script. need help =( Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts