Our Feeds

Thursday 20 September 2012

AJITH KP

Batch File Trick to Bypass "cd" command

It is fucking when we run a Java,Perl, Python,Ruby programs in Windows. There are many step for run a script in windows.
>cd c:\scripts
>python script.py -u www.website.com
if script is in Drive E:\ then there is one more step.
>e:
>cd e:\scrpts
>python script.py -u www.website.com
Here is a bypass trick for "cd" command. Create a bat file in same directory. Eg. c:\scripts\script.py script.py in directory scripts in drive c:\ create a batch file script.bat in c:\scripts the source code for batch file:


Run the batch file and input the command

python script.py -u www.website.com 

Hope you will try this trick

1 comments :

Write comments