The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change directory in a shell script laxmi Linux 12 01-17-2008 08:07 AM
change directory using shell script laxmi Shell Programming and Scripting 0 01-17-2008 07:12 AM
Change of directory thru script shiningram Shell Programming and Scripting 4 03-29-2007 04:30 AM
Change Directory via a script? George Borrmann Shell Programming and Scripting 3 10-09-2006 09:13 PM
how to change "set" values in perl, windows... sekar sundaram Shell Programming and Scripting 1 11-12-2005 05:30 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-10-2008
TRUPTI TRUPTI is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 4
How to change a directory on windows via perl script

How to change a directory on windows via perl script.

I wanna mount a share on windows via perl script.

I have used:-

system("dir");

gives the list of directories in the drive i am.This command works well.

Now i want to move from c drive to z drive via perl script.I am using:-

system("chdir /D z:");

also tried---
system("z:");
`z:`


but no success...

can some one help me please?????
  #2 (permalink)  
Old 12-10-2008
spirtle spirtle is offline
Registered User
  
 

Join Date: Jun 2008
Location: Scotland
Posts: 150
What happens if you use Perl's built-in chdir function?
See how to change working directories in perl?

Last edited by spirtle; 12-10-2008 at 05:20 AM..
  #3 (permalink)  
Old 12-10-2008
TRUPTI TRUPTI is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 4
I got the soln friends...

I did it friends....


chdir('C:\test_directory');
system('md newdirectory');
system('dir');

it worked...
Closed Thread

Bookmarks

Tags
shell script, shell scripting, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0