Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Change Working Directory

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Change Working Directory
  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 >>
 Change Working Directory - 7/29/2005 9:37:19 AM   
  JKW2068

 

Posts: 71
Score: 0
Joined: 4/14/2005
From:
Status: offline
Hey Everyone,
       I'm hoping to solve this problem. I want to change the working directory of the a VBScript. For example, in dos batch I can us the cd command to change the current directory. Any help?
 
 
Post #: 1
 
 RE: Change Working Directory - 7/29/2005 9:58:16 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.CurrentDirectory
WshShell.CurrentDirectory = "C:\Some\New\Path"

(in reply to JKW2068)
 
 
Post #: 2
 
 RE: Change Working Directory - 8/1/2005 12:31:26 AM   
  JKW2068

 

Posts: 71
Score: 0
Joined: 4/14/2005
From:
Status: offline
quote:

CurrentDirectory


ebgree, Sorry for the late reply. Thank you for getting me this. I appreciate the fast reply.

(in reply to JKW2068)
 
 
Post #: 3
 
 
 
  

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 >> Change Working Directory 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