Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing current working directory
#1
Not Solved
Hi,

I am using the below code tp find the current directory.

Code:
Set oShell = CreateObject("WScript.Shell")
'Set oFSO = CreateObject("Scripting.FileSystemObject")
     sCurrDir=oShell.CurrentDirectory
     msgbox sCurrDir
The message says that i am in c:\ directory.
I want to change the directory to e:\
is there any way to change the current directory.
Any help would be really appreciated.
Regards;
Vijay
Reply
#2
Not Solved
Hi Vijay,
what do you mean by change the current directory? if you can explain 'what exactly you want to do' will be better for us to help.
for now what I can suggest is, Place your code or vbs file in directory 'e' Smile

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Changing Data in the application newbieny 0 981 07-17-2019, 07:19 PM
Last Post: newbieny
  Changing default browser cowboy49 5 9,737 09-08-2011, 04:02 PM
Last Post: souvikghosh_diatm
  Write a program to print the current folder name in the local system. kannan_panneerselvam 8 8,106 07-09-2011, 11:10 AM
Last Post: souvikghosh_diatm
  how to capture the current page URL sidartha 9 7,733 01-26-2011, 11:04 PM
Last Post: Brian.Osborne
  changing the name in OR -- is not recognized appsved 3 3,310 08-27-2010, 09:35 PM
Last Post: appsved

Forum Jump:


Users browsing this thread: 1 Guest(s)