obi_wan_the_noob
02-19-2003, 06:38 PM
Hi, This is my first post so please bear with a noob.
I am trying to simply create a virtual drive "w:" and map it to my directory "diskw". I am just using the same code I use in a .bat that works as a .bat, but fails in Media Studio.
my code looks like this:
File.Execute (%SysDir%\cmd.exe", "subst w: "diskw"", Wait)
when i run the code, it opens cmd.exe, but only displays the path to the current directory; it does not create the virtual drive.
here is the same code in my .bat file that works:
@echo off
subst w: "diskw"
w:\usr\local\apache2\bin\Apache.exe -f w:\usr\local\apache2\conf\httpd.conf -d w:\usr\local\apache2\.
subst w: /d
Also, can I set the 'working directory' to point to w:\diskw? and then not have to create the virtual dir?
signed,
confused
I am trying to simply create a virtual drive "w:" and map it to my directory "diskw". I am just using the same code I use in a .bat that works as a .bat, but fails in Media Studio.
my code looks like this:
File.Execute (%SysDir%\cmd.exe", "subst w: "diskw"", Wait)
when i run the code, it opens cmd.exe, but only displays the path to the current directory; it does not create the virtual drive.
here is the same code in my .bat file that works:
@echo off
subst w: "diskw"
w:\usr\local\apache2\bin\Apache.exe -f w:\usr\local\apache2\conf\httpd.conf -d w:\usr\local\apache2\.
subst w: /d
Also, can I set the 'working directory' to point to w:\diskw? and then not have to create the virtual dir?
signed,
confused